-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e6f19a
commit 96a761a
Showing
4 changed files
with
20 additions
and
1,585 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
from django.conf import settings | ||
|
||
from drf_yasg import openapi | ||
|
||
description = f""" | ||
__all__ = [ | ||
"TITLE", | ||
"DESCRIPTION", | ||
"CONTACT", | ||
"LICENSE", | ||
"VERSION", | ||
] | ||
TITLE = f"{settings.PROJECT_NAME} API" | ||
DESCRIPTION = f""" | ||
The API consists of three parts: | ||
1. **Publishing events (resource Events)** <br> The events resource is based on the [GOV NL profile for CloudEvents](https://vng-realisatie.github.io/NL-GOV-profile-for-CloudEvents). | ||
This specification only contains brief descriptions of the attributes of the event. Please refer to the GOV NL profile for additional information. | ||
|
@@ -13,11 +19,9 @@ | |
This specification is work in progress. It can be changed completely without notice. | ||
""" | ||
|
||
info = openapi.Info( | ||
title=f"{settings.PROJECT_NAME} API", | ||
default_version=settings.API_VERSION, | ||
description=description, | ||
license=openapi.License( | ||
name="EUPL 1.2", url="https://opensource.org/licenses/EUPL-1.2" | ||
), | ||
) | ||
CONTACT = { | ||
"email": "[email protected]", | ||
"url": settings.DOCUMENTATION_URL, | ||
} | ||
LICENSE = {"name": "EUPL 1.2", "url": "https://opensource.org/licenses/EUPL-1.2"} | ||
VERSION = settings.API_VERSION |
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
Oops, something went wrong.