GET /api/bookmarks
List all bookmarks

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

search
optional

filter results

Validations:

  • String

order
optional

Sort and order by a searchable field, e.g. ‘

Maruku could not parse this XML/HTML: 
<field> DESC'

Validations:

  • String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Number of results per page to return, ‘all’ to return all results

Validations:

  • Must match regular expression /\A([1-9]\d|all)\Z$/.

Search fields

Field name Type Possible values
controller string
id integer
name string

GET /api/bookmarks/:id
Show a bookmark

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..


POST /api/bookmarks
Create a bookmark

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

bookmark
required

Validations:

  • Hash

bookmark[name]
required

Validations:

  • String

bookmark[controller]
required

Validations:

  • String

bookmark[query]
required

Validations:

  • String

bookmark[public]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.


PUT /api/bookmarks/:id
Update a bookmark

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..

bookmark
required

Validations:

  • Hash

bookmark[name]
optional

Validations:

  • String

bookmark[controller]
optional

Validations:

  • String

bookmark[query]
optional

Validations:

  • String

bookmark[public]
optional , nil allowed

Validations:

  • Must be one of: true, false, 1, 0.


DELETE /api/bookmarks/:id
Delete a bookmark

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, ‘‘, ‘-’ with no leading or trailing space..