Skip to content

Instantly share code, notes, and snippets.

@srinivasanagandla-okta
Last active November 17, 2015 19:24
Show Gist options
  • Save srinivasanagandla-okta/98fa1764042517cb8080 to your computer and use it in GitHub Desktop.
Save srinivasanagandla-okta/98fa1764042517cb8080 to your computer and use it in GitHub Desktop.
POST /api/v1/trusted-domains
```json
{
"name": "test",
"baseUrl": "https://trustme.domain.com",
"scopes": [
{"type": "cors"},
{"type": "redirect"}
]
}
PUT /api/v1/trusted-domains/{id}
```json
{
"name": "test",
"baseUrl": "https://trustme.domain.com",
scopes: [
{"type": "cors"},
{"type": "redirect"}
]
}
```
GET /api/v1/trusted-domains
```json
[
{
"id":"1234",
"name": "cors",
"baseUrl": "https://trustme.domain.com",
"scopes":[
{"type":"cors"},
{"type":"redirect"}
]
},
{
"id":"5678"
"name": "allowed redirects",
"baseUrl": "https://myportal.domain.com",
"scopes":[
{"type":"redirect"}
]
}
]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment