Academies
Get all Academies
You can access the list of 10 Academy by using the /academys
endpoint.
Request:
Response:
Get a single academy
You can get a single academy by adding the id
as a parameter: /academys/{id}
Request:
Response:
Create a academy
You can create a new academy by sending an object like the following to /academys/
Request:
Response:
Note that the image is an URLs that must be ending in a valid image extencion.
Update a academy
You can update an existing academy by sending an object like the following and adding the id
as a parameter: /academys/{id}
Request:
Response:
Note that it is not necessary to send all the academy attributes, just send the attributes that want to update.
Delete a academy
You can delete an existing academy by adding the id
as a parameter: /academia/{id}
Request:
Response:
Get all Athletes by Academy
No information completed yet
You can get all athletes by Academy adding the academyID
as a parameter to /academys/{academyID}/athletes
Request:
Response:
Schema Academy
Attribute | Type | Description |
---|---|---|
id | string | The id of the academy |
name | string | Name of the academy |
locaion | string | The place where is located |
professor | string | Founder or who teach at in place |
phone | number | number for phone comunication |