openapi_fastapi 1.0.0 copy "openapi_fastapi: ^1.0.0" to clipboard
openapi_fastapi: ^1.0.0 copied to clipboard

OpenAPI API client for my FastAPI project

openapi #

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

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

  • API version: 1.0.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen

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:
  openapi:
    git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git

Local #

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

dependencies:
  openapi:
    path: /path/to/openapi

Tests #

TODO

Getting Started #

Please follow the installation procedure and then run the following:

import 'package:openapi/api.dart';


final api_instance = DefaultApi();
final product = Product(); // Product | 

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

Documentation for API Endpoints #

All URIs are relative to http://localhost

Class Method HTTP request Description
DefaultApi createProductProductsPost POST /products createProduct
DefaultApi deleteProductProductsIdDelete DELETE /products/{id} deleteProduct
DefaultApi deleteProductsProductsDelete DELETE /products deleteProducts
DefaultApi getProductProductsIdGet GET /products/{id} getProduct
DefaultApi getProductsProductsGet GET /products getProducts
DefaultApi updateProductProductsIdPut PUT /products/{id} updateProduct

Documentation For Models #

  • HTTPValidationError
  • Product
  • ValidationError

Documentation For Authorization #

All endpoints do not require authorization.

Author #

2
likes
110
points
19
downloads

Publisher

unverified uploader

Weekly Downloads

OpenAPI API client for my FastAPI project

Repository

Documentation

API reference

License

unknown (license)

Dependencies

http, intl, meta

More

Packages that depend on openapi_fastapi