API reference for Distributed Key Value store

API reference for Distributed Key Value store.
More information: https://wiki.onap.org/pages/viewpage.action?pageId=16010913
Contact Info: shashank.kumar.shankar@intel.com
Version: 1.0.0
BasePath:/v1
Apache 2.0
http://www.apache.org/licenses/LICENSE-2.0.html

Access

Methods

[ Jump to Models ]

Table of Contents

Config

ConsulOperation

Domain

Subdomain

Config

Up
get /config/load-default
Load default config into Consul. (configLoadDefaultGet)
Load default config into Consul upon hitting the endpoint.

Return type

ConfigDefaultGETResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConfigDefaultGETResponse

Up
post /config/load
Load config into Consul. (configLoadPost)
Load config into Consul upon hitting the endpoint.

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

body ConfigLoadPOSTRequest (required)
Body Parameter — Load configuration from file system to be added into Consul

Return type

ConfigLoadPOSTResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConfigLoadPOSTResponse

Up
post /config
Endpoint to upload configuration. (configPost)
Endpoint to upload configuration.

Consumes

This API call consumes the following media types via the Content-Type request header:

Form parameters

configFile (required)
Form Parameter — Config file to be uploaded.
token (required)
Form Parameter — Token to identify domain to upload config file to.
subdomain (optional)
Form Parameter — Subdomain to identify subdomain to upload config file to.

Return type

ConfigUploadResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConfigUploadResponse

Up
delete /config/{token}/{filename}
Delete config file. (configTokenFilenameDelete)
Deletes a config file identified by token and filename.

Path parameters

token (required)
Path Parameter — Token used to delete
filename (required)
Path Parameter — Filename used to delete

Return type

ConfigDomainDELETEResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConfigDomainDELETEResponse

Up
get /config/{token}/{filename}
Get config file. (configTokenFilenameGet)
Get config file identified by token and filename.

Path parameters

token (required)
Path Parameter — Token used to get config file.
filename (required)
Path Parameter — Filename used to get config file.

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation

Up
delete /config/{token}/{subdomain}/{filename}
Delete config file from subdomain. (configTokenSubdomainFilenameDelete)
Deletes a config file identified by token, filename and subdomain.

Path parameters

token (required)
Path Parameter — Token used to delete config file.
subdomain (required)
Path Parameter — Subdomain used to delete config file.
filename (required)
Path Parameter — Filename used to delete config file.

Return type

ConfigSubDomainDELETEResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConfigSubDomainDELETEResponse

Up
get /config/{token}/{subdomain}/{filename}
Get config file from subdomain. (configTokenSubdomainFilenameGet)
Get config file identified by token, filename and subdomain.

Path parameters

token (required)
Path Parameter — Token used to get config file.
subdomain (required)
Path Parameter — Subdomain used to get config file.
filename (required)
Path Parameter — Filename used to get config file.

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation

ConsulOperation

Up
delete /deleteconfig/{key}
Delete value for specific key present in Consul. (deleteconfigKeyDelete)
Deletes a specific key.

Path parameters

key (required)
Path Parameter — Key used to delete

Return type

ConsulDELETEResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConsulDELETEResponse

Up
get /getconfig/{key}
Get value for specific key present in Consul. (getconfigKeyGet)
Returns a key and value present in Consul.

Path parameters

key (required)
Path Parameter — Key used to query Consul.

Return type

ConsulGETResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConsulGETResponse

Up
get /getconfigs
Get all keys present in Consul. (getconfigsGet)
Returns a list of keys present in Consul.

Return type

ConsulGETAllResponse

Example data

Content-Type: application/json
{ }

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation ConsulGETAllResponse

Domain

Up
post /register
Endpoint to Register new domain (registerPost)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter — Register new domain.

Return type

RegisterDomainPOSTResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation RegisterDomainPOSTResponse

Up
delete /register/{token}
Delete registered domain. (registerTokenDelete)
Deletes a registered domain identified by token.

Path parameters

token (required)
Path Parameter — Token used to delete

Return type

RegisterDomainDELETEResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation RegisterDomainDELETEResponse

Up
get /register/{token}
Check if domain is registered. (registerTokenGet)
Check if domain is registered identified by token.

Path parameters

token (required)
Path Parameter — Token used to query

Return type

RegisterDomainGETResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation RegisterDomainGETResponse

Subdomain

Up
post /register/{token}/subdomain
Endpoint to Register new subdomain (registerTokenSubdomainPost)

Path parameters

token (required)
Path Parameter — Token used to identify domain.

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter — Register new subdomain.

Return type

RegisterSubdomainPOSTResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation RegisterSubdomainPOSTResponse

Up
delete /register/{token}/subdomain/{subdomain}
Delete registered subdomain. (registerTokenSubdomainSubdomainDelete)
Deletes a registered subdomain identified by token and subdomain.

Path parameters

token (required)
Path Parameter — Token used to delete
subdomain (required)
Path Parameter — Subdomain used to delete

Return type

RegisterSubDomainDELETEResponse

Example data

Content-Type: application/json
{
  "response" : "response"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

successful operation RegisterSubDomainDELETEResponse

Models

[ Jump to Methods ]

Table of Contents

  1. ConfigDefaultGETResponse -
  2. ConfigDomainDELETEResponse -
  3. ConfigLoadPOSTRequest -
  4. ConfigLoadPOSTResponse -
  5. ConfigSubDomainDELETEResponse -
  6. ConfigUploadResponse -
  7. ConsulDELETEResponse -
  8. ConsulGETAllResponse -
  9. ConsulGETResponse -
  10. RegisterDomainDELETEResponse -
  11. RegisterDomainGETResponse -
  12. RegisterDomainPOSTRequest -
  13. RegisterDomainPOSTResponse -
  14. RegisterSubDomainDELETEResponse -
  15. RegisterSubdomainPOSTRequest -
  16. RegisterSubdomainPOSTResponse -

ConfigDefaultGETResponse - Up

response (optional)

ConfigDomainDELETEResponse - Up

response (optional)

ConfigLoadPOSTRequest - Up

token (optional)
filename (optional)
subdomain (optional)

ConfigLoadPOSTResponse - Up

response (optional)

ConfigSubDomainDELETEResponse - Up

response (optional)

ConfigUploadResponse - Up

response (optional)

ConsulDELETEResponse - Up

response (optional)

ConsulGETAllResponse - Up

ConsulGETResponse - Up

response (optional)

RegisterDomainDELETEResponse - Up

response (optional)

RegisterDomainGETResponse - Up

response (optional)

RegisterDomainPOSTRequest - Up

domain (optional)

RegisterDomainPOSTResponse - Up

response (optional)

RegisterSubDomainDELETEResponse - Up

response (optional)

RegisterSubdomainPOSTRequest - Up

subdomain (optional)

RegisterSubdomainPOSTResponse - Up

response (optional)