API_Microservices/swagger/swagger_server/controllers/sports_controller.py
2024-03-27 17:07:47 +01:00

74 lines
1.3 KiB
Python

import connexion
import six
from swagger_server.models.sport import Sport # noqa: E501
from swagger_server import util
def sport_get(): # noqa: E501
"""List all available sports
# noqa: E501
:rtype: None
"""
return 'do some magic!'
def sport_id_delete(id): # noqa: E501
"""Delete a specific sport using the ID
# noqa: E501
:param id:
:type id: int
:rtype: None
"""
return 'do some magic!'
def sport_id_get(id): # noqa: E501
"""Display a specific sport using the ID
# noqa: E501
:param id:
:type id: int
:rtype: Sport
"""
return 'do some magic!'
def sport_id_patch(id, body=None): # noqa: E501
"""Edit a specific sport using the ID
# noqa: E501
:param id:
:type id: int
:param body:
:type body: dict | bytes
:rtype: None
"""
if connexion.request.is_json:
body = Sport.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'
def sport_post(body): # noqa: E501
"""Add a sport
# noqa: E501
:param body:
:type body: dict | bytes
:rtype: None
"""
if connexion.request.is_json:
body = Sport.from_dict(connexion.request.get_json()) # noqa: E501
return 'do some magic!'