Swagger integration for viewing REST on your guillotina install
Project description
Introduction
============
A `guillotina` application to automatically generate swagger interfaces for
APIs defined with `guillotina`.
Configuration
-------------
Available config.json options::
{
"swagger": {
"authentication_allowed": false,
"base_configuration": {
"swagger": "2.0",
"info": {
"version": "",
"title": "Guillotina",
"description": "The REST Resource API"
},
"host": "",
"basePath": "",
"schemes": [],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {},
"definitions": {}
}
}
}
Viewing swagger for resource
----------------------------
Append `@docs` onto any url: `http://localhost:8080/@docs`.
Generating swagger docs
-----------------------
`guillotina_swagger` reads service configuration.
You can provide additional swagger configuration hints by providing a swagger
configuration with any of the following options:
- ignore: to prevent swagger from aggregating it
- additional_paths: provide a list of additional paths this configuration is used for(think routing here)
- display_permission: if you do not want to show permission setting, set this to false
- tags: what tags to use for it
1.0.10 (unreleased)
------------------
- More docs and support for customizing more parts of generated
swagger definition.
[vangheem]
1.0.8 (2017-06-19)
------------------
- Add permission to documentation
[vangheem]
1.0.7 (2017-06-18)
------------------
- Tweak UI
[vangheem]
1.0.6 (2017-06-18)
------------------
- Automatically detect auth tokens and be able to provide own authorization header
[vangheem]
1.0.5 (2017-06-13)
------------------
- Also pull basePath for swagger from vhm if provided
[vangheem]
1.0.4 (2017-06-13)
------------------
- Use vhm for host setting on swagger
[vangheem]
1.0.3 (2017-06-13)
------------------
- Pay attention to vhm
1.0.2 (2017-06-12)
------------------
- be able to provide custom base_url for swagger
[vangheem]
1.0.1 (2017-06-07)
------------------
- Fix getting path of resource
1.0.0 (2017-04-04)
------------------
- initial release
============
A `guillotina` application to automatically generate swagger interfaces for
APIs defined with `guillotina`.
Configuration
-------------
Available config.json options::
{
"swagger": {
"authentication_allowed": false,
"base_configuration": {
"swagger": "2.0",
"info": {
"version": "",
"title": "Guillotina",
"description": "The REST Resource API"
},
"host": "",
"basePath": "",
"schemes": [],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {},
"definitions": {}
}
}
}
Viewing swagger for resource
----------------------------
Append `@docs` onto any url: `http://localhost:8080/@docs`.
Generating swagger docs
-----------------------
`guillotina_swagger` reads service configuration.
You can provide additional swagger configuration hints by providing a swagger
configuration with any of the following options:
- ignore: to prevent swagger from aggregating it
- additional_paths: provide a list of additional paths this configuration is used for(think routing here)
- display_permission: if you do not want to show permission setting, set this to false
- tags: what tags to use for it
1.0.10 (unreleased)
------------------
- More docs and support for customizing more parts of generated
swagger definition.
[vangheem]
1.0.8 (2017-06-19)
------------------
- Add permission to documentation
[vangheem]
1.0.7 (2017-06-18)
------------------
- Tweak UI
[vangheem]
1.0.6 (2017-06-18)
------------------
- Automatically detect auth tokens and be able to provide own authorization header
[vangheem]
1.0.5 (2017-06-13)
------------------
- Also pull basePath for swagger from vhm if provided
[vangheem]
1.0.4 (2017-06-13)
------------------
- Use vhm for host setting on swagger
[vangheem]
1.0.3 (2017-06-13)
------------------
- Pay attention to vhm
1.0.2 (2017-06-12)
------------------
- be able to provide custom base_url for swagger
[vangheem]
1.0.1 (2017-06-07)
------------------
- Fix getting path of resource
1.0.0 (2017-04-04)
------------------
- initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for guillotina_swagger-1.0.10.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04763d6468777f6240b946978bdcd1c1147a85f4c0797acea69f8e06b3cdd6de |
|
MD5 | 934d32fbc2312d5017f5e06e4aa0a0a5 |
|
BLAKE2b-256 | dfa33c40db6b0fc51b53a022e4cf2f5d7f0ae4f145e108fef2b2a06c7ed943b5 |