Skip to content

TechCell-Project/dart-sdk

Repository files navigation

dart_sdk

The documentations of the TechCell RESTful API

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Generator version: 7.4.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen For more information, please visit https://techcell.cloud

Requirements

Dart 2.12 or later

Installation & Usage

Github

If this Dart package is published to Github, add the following dependency to your pubspec.yaml

dependencies:
  dart_sdk:
    git: https://github.com/TechCell-Project/dart-sdk.git

Local

To use the package in your local drive, add the following dependency to your pubspec.yaml

dependencies:
  dart_sdk:
    path: /path/to/dart_sdk

Tests

TODO

Getting Started

Please follow the installation procedure and then run the following:

import 'package:dart_sdk/api.dart';


final api_instance = AddressApi();
final provinceId = 201; // num | Mã tỉnh thành

try {
    final result = api_instance.addressControllerGetDistricts(provinceId);
    print(result);
} catch (e) {
    print('Exception when calling AddressApi->addressControllerGetDistricts: $e\n');
}

Documentation for API Endpoints

All URIs are relative to https://api.techcell.cloud

Class Method HTTP request Description
AddressApi addressControllerGetDistricts GET /api/address/districts/{province_id} Get districts
AddressApi addressControllerGetProvinces GET /api/address/provinces Get provinces
AddressApi addressControllerGetWards GET /api/address/wards/{district_id} Get wards
AttributesApi attributesControllerCreateAttribute POST /api/attributes
AttributesApi attributesControllerDeleteAttribute DELETE /api/attributes/{id}
AttributesApi attributesControllerGetAttribute GET /api/attributes/{id}
AttributesApi attributesControllerGetAttributes GET /api/attributes
AttributesApi attributesControllerUpdateAttribute PATCH /api/attributes/{id}
AuthApi authControllerConfirmEmail POST /api/auth/email/confirm
AuthApi authControllerForgotPassword POST /api/auth/forgot/password
AuthApi authControllerGetMe GET /api/auth/me
AuthApi authControllerLogin POST /api/auth/email/login
AuthApi authControllerLogout POST /api/auth/logout
AuthApi authControllerRefresh POST /api/auth/refresh
AuthApi authControllerRegister POST /api/auth/email/register
AuthApi authControllerResendConfirmEmail POST /api/auth/email/resend-confirm
AuthApi authControllerResetPassword POST /api/auth/reset/password
AuthApi authControllerUpdateMe PATCH /api/auth/me
AuthApi authFacebookControllerLogin POST /api/auth/facebook/login
AuthApi authGoogleControllerLogin POST /api/auth/google/login
BrandsApi brandsControllerCreateBrand POST /api/brands
BrandsApi brandsControllerDeleteBrand DELETE /api/brands/{id}
BrandsApi brandsControllerGetBrand GET /api/brands/{id}
BrandsApi brandsControllerGetBrands GET /api/brands
BrandsApi brandsControllerUpdateBrand PATCH /api/brands/{id}
ImagesApi imagesControllerGetImageByPublicId GET /api/images/{publicId} Get image by public id
ImagesApi imagesControllerUploadArrayImages POST /api/images Upload multiple image
SkusApi skusControllerAddSerialNumbers POST /api/skus/{id}/serial-numbers
SkusApi skusControllerCreateSku POST /api/skus
SkusApi skusControllerGetSkuById GET /api/skus/{id}
SkusApi skusControllerGetSkus GET /api/skus
SkusApi skusControllerUpdateSkuById PATCH /api/skus/{id}
SpusApi sPUControllerAddSpuModels POST /api/spus/{id}/models
SpusApi sPUControllerCreateSPU POST /api/spus
SpusApi sPUControllerGetSPU GET /api/spus/{id}
SpusApi sPUControllerGetSPUs GET /api/spus
SpusApi sPUControllerUpdateSPU PATCH /api/spus/{id}
SpusApi sPUControllerUpdateSpuModel PATCH /api/spus/{id}/models/{slug}
TagsApi tagsControllerCreateTag POST /api/tags
TagsApi tagsControllerGetTag GET /api/tags/{id}
TagsApi tagsControllerGetTags GET /api/tags
TagsApi tagsControllerUpdateTag PATCH /api/tags/{id}
UsersApi usersControllerCreate POST /api/users
UsersApi usersControllerGetUserId GET /api/users/{id}
UsersApi usersControllerGetUsers GET /api/users
UsersApi usersControllerUpdateUserMnt PATCH /api/users/{id}

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer

  • Type: HTTP Bearer authentication

Author

teams@techcell.cloud

About

A generated SDK for Dart

Resources

Stars

Watchers

Forks