/api/segment endpoints.
/api/segment endpoints.
DELETE /api/segment/:id
Archive a Segment. (DEPRECATED -- Just pass updated value of :archived
to the PUT
endpoint instead.)
id
revision_message
value must be a non-blank string.
## `DELETE /api/segment/:id` Archive a Segment. (DEPRECATED -- Just pass updated value of `:archived` to the `PUT` endpoint instead.) ##### PARAMS: * **`id`** * **`revision_message`** value must be a non-blank string.
GET /api/segment/
Fetch all Segments
.
## `GET /api/segment/` Fetch *all* `Segments`.
## `GET /api/segment/:id` Fetch `Segment` with ID. ##### PARAMS: * **`id`**
## `GET /api/segment/:id/related` Return related entities. ##### PARAMS: * **`id`**
## `GET /api/segment/:id/revisions` Fetch `Revisions` for `Segment` with ID. ##### PARAMS: * **`id`**
POST /api/segment/
Create a new Segment
.
name
value must be a non-blank string.
description
value may be nil, or if non-nil, value must be a string.
table_id
value must be an integer greater than zero.
definition
value must be a map.
## `POST /api/segment/` Create a new `Segment`. ##### PARAMS: * **`name`** value must be a non-blank string. * **`description`** value may be nil, or if non-nil, value must be a string. * **`table_id`** value must be an integer greater than zero. * **`definition`** value must be a map.
POST /api/segment/:id/revert
Revert a Segement
to a prior Revision
.
id
revision_id
value must be an integer greater than zero.
## `POST /api/segment/:id/revert` Revert a `Segement` to a prior `Revision`. ##### PARAMS: * **`id`** * **`revision_id`** value must be an integer greater than zero.
PUT /api/segment/:id
Update a Segment
with ID.
points_of_interest
value may be nil, or if non-nil, value must be a string.
description
value may be nil, or if non-nil, value must be a string.
archived
value may be nil, or if non-nil, value must be a boolean.
definition
value may be nil, or if non-nil, value must be a map.
revision_message
value must be a non-blank string.
show_in_getting_started
value may be nil, or if non-nil, value must be a boolean.
name
value may be nil, or if non-nil, value must be a non-blank string.
caveats
value may be nil, or if non-nil, value must be a string.
id
## `PUT /api/segment/:id` Update a `Segment` with ID. ##### PARAMS: * **`points_of_interest`** value may be nil, or if non-nil, value must be a string. * **`description`** value may be nil, or if non-nil, value must be a string. * **`archived`** value may be nil, or if non-nil, value must be a boolean. * **`definition`** value may be nil, or if non-nil, value must be a map. * **`revision_message`** value must be a non-blank string. * **`show_in_getting_started`** value may be nil, or if non-nil, value must be a boolean. * **`name`** value may be nil, or if non-nil, value must be a non-blank string. * **`caveats`** value may be nil, or if non-nil, value must be a string. * **`id`**
Ring routes for api/segment: (POST_ PUT_:id GET_:id_revisions POST_:id_revert GET_ GET_:id_related DELETE_:id GET_:id)
Ring routes for api/segment: (POST_ PUT_:id GET_:id_revisions POST_:id_revert GET_ GET_:id_related DELETE_:id GET_:id)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close