swagger-angular-client
AngularJS service for communicating with endpoints described by swagger.
Usage
To use, include one of these files in your application:
- swagger-angular-client.js
- swagger-angular-client.js.min, a minified version (source map)
You may also bower install swagger-angular-client
to install using bower. Once you've included the script, you can include the swagger-client
module as a dependency to your existing application and use the swaggerClient service to generate api clients.
Schemas can be generated using fetch-swagger-schema.
Example
Example Pet: {{ pet.name || 'Loading...' }} <!-- `petStoreSchema.js` exposes the JSON object generated by [fetch-swagger-schema] when run against http://petstore.swagger.wordnik.com/api/api-docs to the window as `PetStoreSchema` (see `examples/petStoreSchema.js`). -->