Versions Compared

Key

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

...

Code Block
languagebash
titleGET, DELETE
linenumberstrue
GET
URL: /v2/project/{project-name}

RETURN STATUS: 200
RETURN BODY: 
{
  name: "Name of Project" //must be unique
}

DELETE
URL: /v2/project/{project-name}

RETURN STATUS: 204

...

The resource bundle API is now keyed off the Project API

Resource Bundle Names and Versions are unique within a Project.

POST

Code Block
languagejs
titlePOST
linenumberstrue
URL: /v2/project/{project-name}/rb
POST BODY:
{
    "rb-name": "test-rbdef",
    "rb-version": "v1",
     "chart-namedescription": "vault-consul-dev", //optional field. chart-name will be detected if this is not provided.
    testing resource bundle definition api",
}

RETURN STATUS: 201
RETURN BODY: {  "rb-name": "test-rbdef",
  "rb-version": "v1",
  "description": "testing resource bundle definition api",}

GET, DELETE

Code Block
languagejs
titleGET, DELETE
linenumberstrue
GET
URL: /v2/project/{project-name}/rb/{rb-name}

RETURN STATUS: 200
RETURN BODY: "labels
{  
  "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