Back to top
Vastuu Group

Application

Version: 1.0
Last updated: July 22, 2020
|
Reading time: 8 min

Overview


The Application API provides means to manage user's applications and perform different operations on them, like refreshing client secrets.

Capabilities

  • Allows listing all applications where the current user is the developer.
  • Allows listing details for a particular application.
  • Allows creating a new application and its associated OAuth Client
  • Allows creating new client secret for the given application.
  • Allows updating an application and its client.
  • Allows removing an application from the sandbox.


You need to be logged in into Platform of Trust Sandbox and get your bearer token to execute the following cURL requests.

You also need to create and be a memberOf a group to add new apps in the Platform.

GET apps registered in the platform

curl -i -X GET \
   -H "Authorization: Bearer eyJ0eXAiOiJ...4wXVqLIxgrts" \
 "https://api-sandbox.oftrust.net/apps/v1"

NOTE: all application(s) registered by the current user verified by the bearer token will be included in the response.

GET details of an app with its {app_id}

curl -i --request GET \
  --url https://api-sandbox.oftrust.net/apps/v1/{app_id} \
  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9eyJzY29w...DVs5aaf' \
  --header 'content-type: application/json' \

POST a new app

curl -i --request POST \
  --url https://api-sandbox.oftrust.net/apps/v1 \
  --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9eyJzY29w...DVs5aaf' \
  --header 'content-type: application/json' \
  --data '{
    "context": "https://standards.oftrust.net/v2/Context/Identity/Structure/Building/",
    "type": "Building",
    "data": {
        "groupId": "{group_id}",
        "redirectUris": "http://foo.bar",
	"defaultScopes": "",
	"privacyPolicyUrl": "http://foo.bar",
	"name": "Demo Application",
	"webPageUrl": "https://foo.bar",
	"scopes": "",
	"defaultRedirectUri": "http://foo.bar",
	"description": "",
	"iconUrl": "http://foo.bar"
    }
}'

NOTE: checkout doc.oftrust.net to see more requests to the Application API and code samples in Java, Python and JavaScript.


API Specification

Download Open API Specification (OAS) for Application here

Download RESTful API Modeling Language (RAML) specifications for Application here

API Documentation

Checkout API endpoint, HTTP calls and associated parameters in details at docs.oftrust.net

Developer Guides

Read on how to get your Bearer Token to start accessing and using Platform of Trust APIs in this Guide

Read more about registering apps into Platform of Trust sandbox in our Register an application guide

Read more on building applications in our Build Application guide.

Read about how to implement authorization flows on apps in our Integrate oAuth 2.0 guide

Read how to consume a data product using registered application from Consume Data Product guide

Profiles in Other Platforms

ProgrammableWeb

Questions and Feedback

Have a question on Application API? Shoot it in Platform of Trust Stack Overflow community page.

Did Application API miss some feature? Make a Wish in GitHub.

Did we miss something? Make a Wish!

Tell us in Github

See all APIs