Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleGET, DELETE
linenumberstrue
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
languagejs
titlePOST
linenumberstrue
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
languagejs
titlePOST
linenumberstrue
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