-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from maykinmedia/feature/convert-schemar-to-oas3
Feature/convert schemar to oas3
- Loading branch information
Showing
12 changed files
with
3,158 additions
and
75 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from django.conf import settings | ||
|
||
from drf_yasg import openapi | ||
|
||
description = """An API to access Objects""" | ||
|
||
info = openapi.Info( | ||
title=f"{settings.PROJECT_NAME} API", | ||
default_version=settings.API_VERSION, | ||
description=description, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from vng_api_common.conf.api import * # noqa - imports white-listed | ||
|
||
API_VERSION = "0.1.0" | ||
|
||
|
||
# api settings | ||
REST_FRAMEWORK = { | ||
"DEFAULT_RENDERER_CLASSES": ["rest_framework.renderers.JSONRenderer"], | ||
"DEFAULT_PARSER_CLASSES": ["rest_framework.parsers.JSONParser"], | ||
# test | ||
"TEST_REQUEST_DEFAULT_FORMAT": "json", | ||
} | ||
|
||
# OAS settings | ||
SWAGGER_SETTINGS = BASE_SWAGGER_SETTINGS.copy() | ||
SWAGGER_SETTINGS.update( | ||
{ | ||
"DEFAULT_INFO": "objects.api.schema.info", | ||
"SECURITY_DEFINITIONS": None, | ||
} | ||
) |
Oops, something went wrong.