Current User Courses API

with custom mobile images

GET /v1/:school_id/current_user/courses/:id

Parameters

Name Description
school_id school_id
id id

Request

Headers

Accept: application/json

Route

GET /v1/595/current_user/courses/319

Query Parameters

{}: 

cURL

curl "http://localhost:3000/v1/595/current_user/courses/319" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Client-Token: mobile" \
	-H "Sso-Token: jhBFabH66Xe-TymEF6W-" \
	-H "Host: api.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "course": {
    "id": 319,
    "name": "Course Name 41",
    "friendly_url": "friendly-url-41",
    "heading": "Course Heading",
    "description": "Course Description",
    "image_url": "https://assets.teachablecdn.com/icons/default-course-image-ios.png",
    "hero_image_url": "https://assets.teachablecdn.com/bg/default-hero.png",
    "author_bio": {
      "created_at": "2019-10-31T22:08:30Z",
      "headline": "MyText",
      "profile_image_url": "http://www.example.com",
      "bio": "MyText",
      "position": null,
      "user_id": null,
      "name": "Author Name",
      "id": 429,
      "meta": {
        "class": "authorbio",
        "url": "/author_bios/429",
        "name": "Author Name",
        "description": "",
        "image_url": null
      }
    },
    "created_at": "2019-10-31T00:00:00Z",
    "updated_at": "2019-10-31T22:08:31Z"
  },
  "curriculum": {
    "lecture_sections": [

    ]
  }
}