REST API - Items
Items represent nodes in the Verve graph. This can have a type Requirement, a Verification Event, or even a Folder, Component, or File.
Endpoints and Data Structures
GET endpoints and parameters
Endpoints
To access a list of all Items within a project:
GET /item/pid/<project_id>
Acceptable query parameters are:
groupid=<group_id>
: This only returns items that are a member of the specified Group IDrtype=<relationship_type>
: This restricts what upstream and downstream items are populated in theparents
andchildren
arrays. Can be sent multiple times.filter_string=<text string>
: This works as a simple text search across an item’s Title and Body strings, and only returns items that match the text filter. Case insensitive
To access information about a specific Item:
GET /item/did/<item_id>
Response Parameters
Parameter | Data Type | Description |
---|---|---|
did | integer, primary_key | The ID or “Data Identifier” of the item returned. |
title | string | Title of the Item returned. |
body | string | Detailed description of the Item returned. Intended for modification. |
rendered | string | Rendered description of the Item returned, having rendered any Atomics tags and replaced them with their corresponding values. |
type | string | Description of a specific Item Type. These can be customized to your deployment, but commonly used items are:
|
timestamp | timestamp | Timestamp of most recent modification. |
locked | boolean | Whether or not this item is locked from being edited. |
atomics | Atomics[] | List of atomics associated with the Item. See the section on Atomics for details. |
approvals | Approvals[] | List of approvals associated with the Item. In format:
For a deeper understanding, please see Verve Review & Approval Process and https://futureeng.atlassian.net/wiki/pages/resumedraft.action?draftId=1625423931 |
approval_state | enum approval_state | Computed approval state based on approval statuses. For a deeper understanding, please see Verve Review & Approval Process | Data-Model |
children | array | List of children downstream from the item. In format:
|
parents | array | List of parents upstream from the item. In format:
|
verification_status | enum verification_status | One of four values:
|
computed_verification_status | enum verification_status | Computed verification state based on verification statuses. For a deeper understanding, please see Status Icons. Same enumeration as |
group_list | array | List of groups the item is a member of.
|
POST and PUT endpoints and parameters
Endpoints
To create a new item:
POST /item
To update a specific item:
PUT /item/did/<item_id>
To delete an item:
DELETE: /item/did/<item_id>
Body Parameters
Parameter | Datatype | Required | Description |
---|---|---|---|
title | string | No | Short-form title text |
body | string | No | Long-form description text of the item in question. |
locked | boolean | No | If the item is locked for editing. If already set to |
project_id | integer | No | ID of project item is a member of. |
type_id | integer | No | Integer corresponding to specific Item Type. These can be customized to your deployment, but commonly used items are:
|
verification_status | enum verification_status | No | One of four values:
|