Skip to content

service v1 data

demadred edited this page Mar 7, 2017 · 1 revision

Introduction

The data service is an abstraction around several data backends which allow for transparent data retrieval and storage.

  • GET v1/data/{applicationId}/{name}
  • POST v1/data/{applicationId}/{name}

GET v1/data/{applicationId}/{name}

Retrieves the content from a specific data store. The results are returned with pagination. Request parameters:

  • pageNumber:
  • pageSize:
  • limit:
  • order:

POST v1/data/{applicationId}/{name}

Stores new content in a data store.

Configuration

Currently the data service doesn't require configuration.

Authorization

In order to be authorized for a data end-point the current user needs to have a role with a matching allow role.

{ 
  "name": "proxy_user", 
  "allow": [ 
    { "service": "data", "resource": "*", "rights": "cr" } 
  ] 
}