I am new to flutter and trying to integration below library for using Swagger in flutter project. https://github.com/swagger-api/swagger-codegen/tree/master/samples/client/petstore/dart/swagger
Steps which i did so far :
1)
added the Path in Pubspec.yaml
swagger:
path: /path/swagger-codegen-master/samples/client/petstore/dart/swagger
2) main.dart file :
import 'package:swagger/api.dart';
3) added in Pubspec.yaml for swagger file so my project support SDK 2.0.0
environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"
It is working fine Problem is :
I can able to access var api_instance = new PetApi();
Which is swagger api implemented in that.
How can i use the url of my swagger api which had complete different API as per my project.
For eg on url http://petstore.swagger.io/v2
but on http://student.swagger.io/v2
and have complete different request , header and response parameters ?
How can i customise it as per my use.