From 7f2d2bdf833c9b53718f68cdcd300ea0f5e61166 Mon Sep 17 00:00:00 2001 From: indyandie <1058837+Indyandie@users.noreply.github.com> Date: Sat, 24 Feb 2024 01:48:34 -0600 Subject: [PATCH] docs(openapi): update spectacular settings --- config/settings.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config/settings.py b/config/settings.py index 9679b799..71a163d3 100755 --- a/config/settings.py +++ b/config/settings.py @@ -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', }