Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rkojedzinszky/django-tastypie-openapi
Generate OpenAPI specification for Django-Tastypie API
https://github.com/rkojedzinszky/django-tastypie-openapi
django django-tastypie openapi
Last synced: about 1 month ago
JSON representation
Generate OpenAPI specification for Django-Tastypie API
- Host: GitHub
- URL: https://github.com/rkojedzinszky/django-tastypie-openapi
- Owner: rkojedzinszky
- License: bsd-2-clause
- Created: 2021-03-03T12:52:04.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-14T09:33:29.000Z (about 2 months ago)
- Last Synced: 2024-11-14T10:29:56.612Z (about 2 months ago)
- Topics: django, django-tastypie, openapi
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-tastypie-openapi
Generate OpenAPI specification for Django-Tastypie API.
## Usage
```bash
$ pip install django-tastypie-openapi
```Then add to your urls.py:
```python
...
from tastypie_openapi import SchemaView
...urlpatterns = [
...
path('api/schema/', SchemaView.as_view(api=ApiV0, title="API", version="0.0.0")),
...
]
```Where `ApiV0` is your `tastypie.Api` object.
## Status
This is ALPHA software, may change in the future.
Currently, operations are generated only for the following combinations:
- Get/List
- Post/List
- Get/Detail
- Put/Detail
- Patch/Detail
- Delete/DetailOther operations are not exported.