Creating Author Bios
POST /api/v1/author_bios/
Parameters
| Name |
Description |
|
id
|
id
|
|
facebook_username
|
FB
|
|
google_plus_username
|
google
|
|
is_published
|
show to public?
|
|
name
|
display name of the author
|
|
position
|
display order
|
|
profile_image_url
|
profile image
|
|
twitter_username
|
twitter accnt
|
|
user_id
|
teacher this bio relates to
|
|
headline
|
short description
|
|
text
|
details
|
Request
Headers
Route
POST /api/v1/author_bios/
Body
{"id":21,"name":"Name","headline":"test headline"}
cURL
curl "http://localhost:3000/api/v1/author_bios/" -d '{"id":21,"name":"Name","headline":"test headline"}' -X POST \
-H "Accept: application/json" \
-H "X-Api-Token: KeoFy5Zs_SznQRqUx1V4Rsd17Go1Xzsbjg" \
-H "X-Api-Email: user-36@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
201 Created
Body
{
"created_at": "2019-10-31T21:58:31Z",
"headline": "test headline",
"profile_image_url": null,
"bio": null,
"position": null,
"user_id": null,
"name": "Name",
"id": 22,
"meta": {
"class": "authorbio",
"url": "/author_bios/22",
"name": "Name",
"description": "",
"image_url": null
}
}