Author Bios API

for owner, author, student, and affiliate

GET /api/v1/author_bios/:id

Request

Headers

Accept: application/json
X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA
X-Api-Email: user-22@example.com

Route

GET /api/v1/author_bios/14

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/author_bios/14" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA" \
	-H "X-Api-Email: user-22@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T21:58:26Z",
  "headline": "MyText",
  "profile_image_url": "http://www.example.com",
  "bio": "MyText",
  "position": null,
  "user_id": 24,
  "name": "Author Name",
  "id": 14,
  "meta": {
    "class": "authorbio",
    "url": "/author_bios/14",
    "name": "Author Name",
    "description": "",
    "image_url": null
  }
}

Request

Headers

Accept: application/json
X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA
X-Api-Email: user-22@example.com

Route

GET /api/v1/author_bios/14

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/author_bios/14" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA" \
	-H "X-Api-Email: user-22@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T21:58:26Z",
  "headline": "MyText",
  "profile_image_url": "http://www.example.com",
  "bio": "MyText",
  "position": null,
  "user_id": 24,
  "name": "Author Name",
  "id": 14,
  "meta": {
    "class": "authorbio",
    "url": "/author_bios/14",
    "name": "Author Name",
    "description": "",
    "image_url": null
  }
}

Request

Headers

Accept: application/json
X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA
X-Api-Email: user-22@example.com

Route

GET /api/v1/author_bios/14

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/author_bios/14" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA" \
	-H "X-Api-Email: user-22@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T21:58:26Z",
  "headline": "MyText",
  "profile_image_url": "http://www.example.com",
  "bio": "MyText",
  "position": null,
  "user_id": 24,
  "name": "Author Name",
  "id": 14,
  "meta": {
    "class": "authorbio",
    "url": "/author_bios/14",
    "name": "Author Name",
    "description": "",
    "image_url": null
  }
}

Request

Headers

Accept: application/json
X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA
X-Api-Email: user-22@example.com

Route

GET /api/v1/author_bios/14

Query Parameters

{}: 

cURL

curl "http://localhost:3000/api/v1/author_bios/14" -X GET \
	-H "Accept: application/json" \
	-H "X-Api-Token: qpcsL3UCyw7sKXJ-nZ3FV2p3S8aBjEC8BA" \
	-H "X-Api-Email: user-22@example.com" \
	-H "Content-Type: application/json" \
	-H "Host: school.worksonmy.computer"

Response

Headers

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

Status

200 OK

Body

{
  "created_at": "2019-10-31T21:58:26Z",
  "headline": "MyText",
  "profile_image_url": "http://www.example.com",
  "bio": "MyText",
  "position": null,
  "user_id": 24,
  "name": "Author Name",
  "id": 14,
  "meta": {
    "class": "authorbio",
    "url": "/author_bios/14",
    "name": "Author Name",
    "description": "",
    "image_url": null
  }
}