API_Microservices/swagger/swagger_server/controllers/medal_controller.py

75 lines
1.2 KiB
Python
Raw Permalink Normal View History

2024-03-27 17:07:47 +01:00
import connexion
import six
from swagger_server.models.medal import Medal # noqa: E501
from swagger_server import util
def medal_get(): # noqa: E501
"""Display medals list
# noqa: E501
:rtype: None
"""
return 'do some magic!'
def medal_id_delete(id): # noqa: E501
"""Delete medal from Id
# noqa: E501
:param id:
:type id: int
:rtype: None
"""
return 'do some magic!'
def medal_id_get(id): # noqa: E501
"""Display a medal
# noqa: E501
:param id:
:type id: int
:rtype: Medal
"""
return 'do some magic!'
def medal_id_patch(id, body=None): # noqa: E501
"""Modify element from medal
# noqa: E501
:param id:
:type id: int
:param body:
:type body: dict | bytes
:rtype: None
"""
if connexion.request.is_json:
body = Medal.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
def medal_post(body): # noqa: E501
"""Add a new medal
# noqa: E501
:param body:
:type body: dict | bytes
:rtype: None
"""
if connexion.request.is_json:
body = Medal.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'