Opdracht voor het vak Cloud API's This API will make it possible to search for excercises depending on which part of your body you want to train.
GET /api/v1/exercises
GET /api/v1/exercises?name={exercice_name}
GET /api/v1/exercises?sortBy=name
GET /api/v1/exercises?sortBy=name&direction=asc
GET /api/v1/exercises?page={page_number}
GET /api/v1/exercises?limit={max_items}
HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
[]
GET /api/v1/exercises/{id}
HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
{}
POST /api/v1/exercises
HTTP/1.1 201 Created
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 201 Created
Connection: close
Content-Type: application/json
{}
PUT /api/v1/exercises/{id}
HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
{}
DELETE /api/v1/exercises/{id}
HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json