Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Stories

10 routes. Paths are relative to https://api.intersink.com/v1. This group belongs to a feature in beta.

All groups

Get feed

GET/stories

Public: no sign-in needed.

Parameters

NameTypeDescription
pagenumber, query
limitnumber, query
active_profile_idstring, query
latitudestring, query
longitudestring, query

Response

200. The payload in data is not described in the spec yet.

Create story

POST/stories

Needs a signed-in user (Bearer token or access_token cookie).

Request body application/json

FieldTypeDescription
titlestringAt most 255 characters.
descriptionstring
urlstringAt most 255 characters.
statusstringOne of: "published", "draft", "archived", "expired".
file_idnumber
active_profile_idstring
locationstring"lat,lng" where it was posted (stored rounded to ~110 m). At most 64 characters.
placestringAt most 120 characters.

Response

201. The payload in data is not described in the spec yet.

Delete story

DELETE/stories/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Get comments

GET/stories/{id}/comments

Public: no sign-in needed.

Parameters

NameTypeDescription
idrequiredstring, path
pagerequiredstring, query
limitrequiredstring, query
active_profile_idrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Add comment

POST/stories/{id}/comments

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Request body application/json

FieldTypeDescription
contentrequiredstringAt most 255 characters.
active_profile_idstring

Response

201. The payload in data is not described in the spec yet.

Toggle like

POST/stories/{id}/like

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path
active_profile_idrequiredstring, query

Response

201. The payload in data is not described in the spec yet.

Toggle share

POST/stories/{id}/share

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path
active_profile_idrequiredstring, query

Response

201. The payload in data is not described in the spec yet.

Record view

POST/stories/{id}/view

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path
active_profile_idrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Delete comment

DELETE/stories/comment/{commentId}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
commentIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Get my stories

GET/stories/my

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
pagenumber, query
limitnumber, query
active_profile_idstring, query
latitudestring, query
longitudestring, query

Response

200. The payload in data is not described in the spec yet.