Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The purpose of this section is to describe how to configure brand access.

Overview

This article applies to rator-rest-api-3.x and rator-rest-api-auth-1.x. With those versions, brandKey parameter is mandatory.

Token endpoint (authentication)

In order to obtain an access token, every request has to contain the brandKey parameter. This parameter is of type QUERY.

Example:curl -v -X POST -u myclientid:myclientsecret http://host:port/appcontext/oauth/token?username=#myusername&password=#mypassword&grant_type=password&brandKey={mybrandkey}

REST API endpoint (resources)

Every request for any resource has to contain the X-RATOR-brand-key parameter. This parameter is of type HEADER.

Example: 

$ curl -X GET 'http://host:port/appcontext/api/billing-groups/201506171857210002/balance' 

-H 'Accept-Language: it' 
-H 'Authorization: Bearer 2acda61f-cf4f-42be-8561-563b5db7840f
-H 'X-RATOR-brand-key: BRAND1' 

Filter by label

There are no items with the selected labels at this time.

  • No labels