- Notifications
You must be signed in to change notification settings - Fork0
Demo Django project with auto-generated API docs.
License
NotificationsYou must be signed in to change notification settings
CrossRef/demo-django-project
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Quick demo project to show Django.
- Runs in Docker
- Hello World response
- Naive JSON response
- Django REST API based response.
- Swagger schema
First time, and if you change dependencies or Dockerfile:
`docker-compose build`
To test:
`docker-compose run dev /code/manage.py test`
To run development:
`docker-compose run --service-ports dev`
Then visit
- http://localhost:8000/
- http://localhost:8000/naive/numbers - JSON response done naively.
- http://localhost:8000/naive/numbers/28
- http://localhost:8000/numbers/ - API with properly defined entities.
- http://localhost:8000/numbers/28/
- http://localhost:8000/docs/ - Auto generated Docs.
- http://localhost:8000/metrics - Prometheus metrics.
About
Demo Django project with auto-generated API docs.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.