Docs - add 'fr' translation + fixes

This commit is contained in:
Sam
2023-06-18 20:45:39 +02:00
parent bf1e12f35d
commit 4491b8f8de
69 changed files with 3783 additions and 3385 deletions

View File

@ -58,8 +58,8 @@ def get_application_config() -> Union[Dict, HttpResponse]:
"status": "success"
}
:statuscode 200: success
:statuscode 500: error on getting configuration
:statuscode 200: ``success``
:statuscode 500: ``error on getting configuration``
"""
try:
@ -125,15 +125,15 @@ def update_application_config(auth_user: User) -> Union[Dict, HttpResponse]:
:reqheader Authorization: OAuth 2.0 Bearer Token
:statuscode 200: success
:statuscode 400: invalid payload
:statuscode 200: ``success``
:statuscode 400: ``invalid payload``
:statuscode 401:
- provide a valid auth token
- signature expired, please log in again
- invalid token, please log in again
- valid email must be provided for admin contact
:statuscode 403: you do not have permissions
:statuscode 500: error when updating configuration
- ``provide a valid auth token``
- ``signature expired, please log in again``
- ``invalid token, please log in again``
- ``valid email must be provided for admin contact``
:statuscode 403: ``you do not have permissions``
:statuscode 500: ``error when updating configuration``
"""
config_data = request.get_json()
if not config_data:
@ -209,6 +209,6 @@ def health_check() -> Union[Dict, HttpResponse]:
"status": "success"
}
:statuscode 200: success
:statuscode 200: ``success``
"""
return {'status': 'success', 'message': 'pong!'}