import 'package:dart_sdk/api.dart';All URIs are relative to https://api.techcell.cloud
| Method | HTTP request | Description |
|---|---|---|
| imagesControllerGetImageByPublicId | GET /api/images/{publicId} | Get image by public id |
| imagesControllerUploadArrayImages | POST /api/images | Upload multiple image |
ImageUploadedResponseDTO imagesControllerGetImageByPublicId(publicId)
Get image by public id
import 'package:dart_sdk/api.dart';
final api_instance = ImagesApi();
final publicId = publicId_example; // String | Image public id
try {
final result = api_instance.imagesControllerGetImageByPublicId(publicId);
print(result);
} catch (e) {
print('Exception when calling ImagesApi->imagesControllerGetImageByPublicId: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| publicId | String | Image public id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List imagesControllerUploadArrayImages(images)
Upload multiple image
import 'package:dart_sdk/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = ImagesApi();
final images = [/path/to/file.txt]; // List<MultipartFile> |
try {
final result = api_instance.imagesControllerUploadArrayImages(images);
print(result);
} catch (e) {
print('Exception when calling ImagesApi->imagesControllerUploadArrayImages: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| images | List | [optional] |
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]