...
Code Block |
---|
language | js |
---|
title | GET, DELETE |
---|
linenumbers | true |
---|
|
GET
URL: /v2/project/{project-name}/rb/{rb-name}
RETURN STATUS: 200
RETURN BODY:
{
"rb-name": "test-rbdef",
"rb-version": "v1",
"description": "testing resource bundle definition api"
}
DELETE
URL: /v2/project/{project-name}/rb/{rb-name}
RETURN STATUS: 204 |
Intent API
Intent API is different compared to the other APIs documented here.
There is a main Intent API that allows you to create a Parent Intent and any SUB Intents are forwarded to their respective handlers.
POST
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
URL: /v2/project/{project-name}/rb/{rb-name}/{version}/intent
POST BODY:
{
"intent-name": "test-rbdef",
"description": "testing resource bundle definition api"
}
RETURN STATUS: 201
RETURN BODY:
{
"intent-name": "test-rbdef",
"description": "testing resource bundle definition api"
} |
GET, DELETE
Code Block |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
GET
URL: /v2/project/{project-name}/rb/{rb-name}/{version}/intent/{intent-name}
RETURN STATUS: 200
RETURN BODY:
{
"intent-name": "test-rbdef",
"description": "testing resource bundle definition api"
}
DELETE
URL: /v2/project/{project-name}/rb/{rb-name}/{version}/intent/{intent-name}
RETURN STATUS: 204
|