75 lines
1.3 KiB
Python
75 lines
1.3 KiB
Python
|
import connexion
|
||
|
import six
|
||
|
|
||
|
from swagger_server.models.athlete import Athlete # noqa: E501
|
||
|
from swagger_server import util
|
||
|
|
||
|
|
||
|
def athlete_get(): # noqa: E501
|
||
|
"""Display athletes list
|
||
|
|
||
|
# noqa: E501
|
||
|
|
||
|
|
||
|
:rtype: None
|
||
|
"""
|
||
|
return 'do some magic!'
|
||
|
|
||
|
|
||
|
def athlete_id_delete(id): # noqa: E501
|
||
|
"""Delete an athlete using the ID
|
||
|
|
||
|
# noqa: E501
|
||
|
|
||
|
:param id:
|
||
|
:type id: int
|
||
|
|
||
|
:rtype: None
|
||
|
"""
|
||
|
return 'do some magic!'
|
||
|
|
||
|
|
||
|
def athlete_id_get(id): # noqa: E501
|
||
|
"""Display one athlete using the ID
|
||
|
|
||
|
# noqa: E501
|
||
|
|
||
|
:param id:
|
||
|
:type id: int
|
||
|
|
||
|
:rtype: Athlete
|
||
|
"""
|
||
|
return 'do some magic!'
|
||
|
|
||
|
|
||
|
def athlete_id_patch(id, body=None): # noqa: E501
|
||
|
"""Modify a athlete using the ID
|
||
|
|
||
|
# noqa: E501
|
||
|
|
||
|
:param id:
|
||
|
:type id: int
|
||
|
:param body:
|
||
|
:type body: dict | bytes
|
||
|
|
||
|
:rtype: None
|
||
|
"""
|
||
|
if connexion.request.is_json:
|
||
|
body = Athlete.from_dict(connexion.request.get_json()) # noqa: E501
|
||
|
return 'do some magic!'
|
||
|
|
||
|
|
||
|
def athlete_post(body): # noqa: E501
|
||
|
"""Add a new athlete
|
||
|
|
||
|
# noqa: E501
|
||
|
|
||
|
:param body:
|
||
|
:type body: dict | bytes
|
||
|
|
||
|
:rtype: None
|
||
|
"""
|
||
|
if connexion.request.is_json:
|
||
|
body = Athlete.from_dict(connexion.request.get_json()) # noqa: E501
|
||
|
return 'do some magic!'
|