docs(openapi): update spectacular settings

This commit is contained in:
indyandie 2024-02-24 01:48:34 -06:00
parent 4bc132d82c
commit 7f2d2bdf83
No known key found for this signature in database
GPG key ID: FDB83C1AED3933E1

View file

@ -140,10 +140,12 @@ TEMPLATES = [
DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
SPECTACULAR_SETTINGS = {
'TITLE': 'Your Project API',
'DESCRIPTION': 'Your project description',
'VERSION': '1.0.0',
'TITLE': 'pokeapi',
'DESCRIPTION': 'A RESTful API for Pokémon.',
'SERVERS': [{'url': 'https://pokeapi.co/api/v2'}],
'EXTERNAL_DOCS': {'url': 'https://pokeapi.co/docs/v2'},
'VERSION': '2.7.0',
'SERVE_INCLUDE_SCHEMA': False,
# OTHER SETTINGS
'OAS_VERSION': '3.1.0',
}