Courses API

author courses are returned

GET /api/v1/courses

Request

Headers

Accept: application/json
X-Api-Token: wDSt4HB3ozWzUbB-mmKU_d_55x6L9XcAtw
X-Api-Email: user-292@example.com

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: wDSt4HB3ozWzUbB-mmKU_d_55x6L9XcAtw" \
	-H "X-Api-Email: user-292@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

Content-Type: application/json; charset=utf-8
Content-Length: 113

Status

200 OK

Body

{
  "courses": [

  ],
  "meta": {
    "total": 0,
    "page": 1,
    "from": 0,
    "to": 0,
    "per": 25,
    "number_of_pages": 1,
    "query": {
      "school_id": 681
    }
  }
}