no courses are returned
GET /api/v1/courses
Request
Headers
Route
GET /api/v1/courses
Query Parameters
{}:
cURL
curl "http://localhost:3000/api/v1/courses" -X GET \
-H "Accept: application/json" \
-H "X-Api-Token: HsghSzbEB9ixkUz4iGs2mY2Uei5tNAvcNg" \
-H "X-Api-Email: user-294@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
200 OK
Body
{
"courses": [
],
"meta": {
"total": 0,
"page": 1,
"from": 0,
"to": 0,
"per": 25,
"number_of_pages": 1,
"query": {
"school_id": 682
}
}
}