Captions API

for author and owner

GET /api/v1/captions/:id

Parameters

Name Description
id id

Request

Headers

Accept: application/json
X-Api-Token: _u1sszHqxjkFkwJkJPMQ2u5ifhzsStER8w
X-Api-Email: user-650@example.com

Route

GET /api/v1/captions/8

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/captions/8" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: _u1sszHqxjkFkwJkJPMQ2u5ifhzsStER8w" \
	-H "X-Api-Email: user-650@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "id": 8,
  "caption_text": "1\n00:00:01,478 --> 00:00:04,020\nVimeoSrtPlayer\n\n2\n00:00:05,045 --> 00:00:09,545\nSupport font",
  "language": "fre",
  "attachment_id": 72,
  "created_at": "2019-10-31T22:06:28Z",
  "updated_at": "2019-10-31T22:06:28Z",
  "school_id": 492,
  "options": {
  }
}

Request

Headers

Accept: application/json
X-Api-Token: _u1sszHqxjkFkwJkJPMQ2u5ifhzsStER8w
X-Api-Email: user-650@example.com

Route

GET /api/v1/captions/8

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/captions/8" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: _u1sszHqxjkFkwJkJPMQ2u5ifhzsStER8w" \
	-H "X-Api-Email: user-650@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "id": 8,
  "caption_text": "1\n00:00:01,478 --> 00:00:04,020\nVimeoSrtPlayer\n\n2\n00:00:05,045 --> 00:00:09,545\nSupport font",
  "language": "fre",
  "attachment_id": 72,
  "created_at": "2019-10-31T22:06:28Z",
  "updated_at": "2019-10-31T22:06:28Z",
  "school_id": 492,
  "options": {
  }
}