swagger
Here are 302 public repositories matching this topic...
Description
The issue #1210 made me think it would be great to document request context management when using aiohttp server. At least inform that the given example in the doc does not work for aiohttp server.
Attempting to return the following data structure to the user and document properly in swagger:
{ 'dynamic_key_1': ['string1', 'string2'], 'dynamic_key_2': ['string3]', ... }
i.e. a dictionary with dynamic keys, where values are a list of strings.
Using the example from here can get simple dynamic
-
Updated
Jul 5, 2020 - Python
add auth to docs
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)
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
When I run the sample from https://github.com/marshmallow-code/apispec/blob/dev/docs/quickstart.rst
the expected output
# {'components': {'parameters': {},
# 'responses': {},
# 'schemas': {'Gist': {'properties': {'id': {'format': 'int64',
# 'type': 'integer'},
#
Please provide examples on connecting to DATBASE TABLES - New to Flask-RestX
Other codegen tools support circular references. See swagger-api/swagger-codegen#728.
I this this issue with the following yml:
Node:
description: Generic node.
type: object
properties:
type:
description: Type or label of the node.
type: string
properties:
description: Node specific dictionary of key/value pairsBased on #32 and discussion with @Hultner
- Have a smaller quickstart
- Link to docs in the top of the page (not only badge)
- Move documentation content to a separate document
- Share roadmap info
- Examples of errors that could be found
- Possible workflows for Schemathesis. As a part of a test suite, CI step, CLI, etc
- [Usage](https://github.com/untitaker/
-
Updated
Feb 7, 2020 - Python
-
Updated
Jul 2, 2020 - Python
-
Updated
Nov 30, 2018 - Python
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
-
Updated
Jun 30, 2020 - Python
-
Updated
Apr 18, 2020 - Python
-
Updated
Jun 28, 2020 - Python
-
Updated
May 15, 2020 - Python
-
Updated
Apr 19, 2020 - Python
-
Updated
Jun 30, 2019 - Python
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
Please describe the request object for the request_parameters_factory.create. Can't find it in source code.
Is it possible to validate a response data?
-
Updated
Jul 1, 2020 - Python
-
Updated
Jun 5, 2020 - Python
If the field 'username' is not filled in input an appropriate error message should be showned and listed under the 400 Response.
To Reproduce
Steps to reproduce the behavior:
- Go to 'User-Register'
- {
"name": "testua",
"username": "",
"password": "testua123",
"email": "voxij69223@mailop7.com",
"terms_and_cond
Improve this page
Add a description, image, and links to the swagger topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the swagger topic, visit your repo's landing page and select "manage topics."
Description
How can I use socket.io instead of the plain websocket integration? I guess this is more a question belonging to starlette.
Currently migrating from a flask application using flask-socketio / python-socketio
Any hint is appreciated. Thx.