Skip to content

TechCell-Project/dart-dio-sdk

Repository files navigation

dart_dio_sdk (EXPERIMENTAL)

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.DartDioClientCodegen For more information, please visit https://techcell.cloud

Requirements

Installation & Usage

pub.dev

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
  dart_dio_sdk: 1.0.0

Github

If this Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  dart_dio_sdk:
    git:
      url: https://github.com/TechCell-Project/dart-dio-sdk.git
      #ref: main

Local development

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  dart_dio_sdk:
    path: /path/to/dart_dio_sdk

Getting Started

Please follow the installation procedure and then run the following:

import 'package:dart_dio_sdk/dart_dio_sdk.dart';


final api = DartDioSdk().getAddressApi();
final num provinceId = 201; // num | Mã tỉnh thành

try {
    final response = await api.addressControllerGetDistricts(provinceId);
    print(response);
} catch on DioException (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 Token authentication (JWT)

Author

teams@techcell.cloud

About

A generated SDK for Dart-dio

Resources

Stars

Watchers

Forks