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
Dart 1.20.0 or later OR Flutter 0.0.20 or later
If this Dart package is published to Github, please include the following in pubspec.yaml
name: openapi
version: 1.0.0
description: OpenAPI API client
dependencies:
openapi:
git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
version: 'any'
To use the package in your local drive, please include the following in pubspec.yaml
dependencies:
openapi:
path: /path/to/openapi
TODO
Please follow the installation procedure and then run the following:
import 'package:openapi/api.dart';
var api_instance = new PetsApi();
try {
api_instance.createPets();
} catch (e) {
print("Exception when calling PetsApi->createPets: $e\n");
}
All URIs are relative to http://petstore.swagger.io/v1
Class | Method | HTTP request | Description |
---|---|---|---|
PetsApi | createPets | POST /pets | Create a pet |
PetsApi | listPets | GET /pets | List all pets |
PetsApi | showPetById | GET /pets/{petId} | Info for a specific pet |
All endpoints do not require authorization.