Skip to content
#

swagger

Here are 302 public repositories matching this topic...

fastapi
rochacbruno
rochacbruno commented Mar 11, 2020

Copied from #103

I've resolved the issue of authentication using the next code:
swagger_template = { ..., 'securityDefinitions': { 'basicAuth': { 'type': 'basic' } }, ... }
app = Flask(__name__)
Swagger(app, config=config[config_name].swagger_config, template=swagger_template)

![image](https://use

phr34k
phr34k commented Mar 28, 2020

I'm new to rest_framework but I'm using drf in combination with redoc and this library and it seems to work fantastic.

I was wondering how can I generate custom sections of the documentation for objects that are commonly reused across all API calls. For example, I have a token object that is query/post parameter so I would like this to be explained topic in its own section.

With the help of

taoweibang
taoweibang commented Apr 9, 2019
$ curl 'http://127.0.0.1:5000/auth/oauth2/token?grant_type=client_credentials' --user 'documentation:KQ()SWK)SQK)QWSKQW(SKQ)S(QWSQW(SJ*HQ&HQW*SQ*^SSQWSGQSG'
{"access_token": "lYoijoYaTgXZi1bLQTs4PuItKsNHNY", "token_type": "Bearer", "expires_in": 3600, "scope": "users:write teams:write auth:write users:read auth:read teams:read"}

Grab the above access_token and access protected resour

bedge
bedge commented May 9, 2018

Pyswagger appears to be expecting nested swagger.{json.yml} docs at each 'path' in the API tree for an API specified as a local files, (file://):

I have a swagger 1.2 doc, applications.json, handed to me from another team from which to develop a client.

(output truncated for brevity)

----> 3 api_applications = App.create('./applications.json')

~/.pyenv/versions/3.6.5/envs/3.6/lib

prance
ApaDoctor
ApaDoctor commented Mar 26, 2019

In YAML you can write strings without quotes. For some specific cases you are forced to use quotes, for example when you put digits, but you want them to be of type string.
But when you write schema and set type of variable to string - when you provide example you expect that it will also be of type string. But it's converted to the python as integer.

Expected Behaviour

Some schema in `req

Improve this page

Add a description, image, and links to the swagger topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the swagger topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.