...
Code Block |
---|
language | bash |
---|
title | GET, DELETE |
---|
linenumbers | true |
---|
|
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 |
---|
language | js |
---|
title | POST |
---|
linenumbers | true |
---|
|
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 |
---|
language | js |
---|
title | GET, DELETE |
---|
linenumbers | true |
---|
|
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 |