GET https://apis.wso2.com/api/am/store/v0.13/applications/{applicationId}/keys/{keyType}
This operation can be used to retrieve key details of an individual application specifying the key type in the URI.
apim:subscribe
i
GET https://localhost:9443/api/am/store/v0.13/applications/896658a0-b4ee-4535-bbfa-806c894a4015/keys/PRODUCTION
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
HTTP/1.1 200 OK
Content-Type: application/json
{
"consumerKey": "QwEtRHd4NJkcFuRUfAT5af8XEEoa",
"consumerSecret": "7Fairfeu321ENjOR9w2xgJl3i70a",
"supportedGrantTypes": [
"refresh_token",
"urn:ietf:params:oauth:grant-type:saml2-bearer",
"password",
"client_credentials",
"iwa:ntlm"
],
"callbackUrl": "http://sample/com/callback",
"keyState": "COMPLETED",
"keyType": "PRODUCTION"}
curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" "https://localhost:9443/api/am/store/v0.13/applications/896658a0-b4ee-4535-bbfa-806c894a4015/keys/PRODUCTION"
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
applicationId required |
Application Identifier consisting of the UUID of the Application. |
String | |
Path |
keyType required |
**Application Key Type** standing for the type of the keys (i.e. Production or Sandbox). Accepted values: PRODUCTION
SANDBOX
|
String | |
Query |
groupId optional |
Application Group Id |
String | |
Header |
Accept optional |
Media types acceptable for the response. Default is application/json. |
String |
application/json |
HTTP Code | Description | Schema |
---|---|---|
200 |
OK. Application key details returned. |
ApplicationKey |
404 |
Not Found. Requested application does not exist. |
Error |
406 |
Not Acceptable. The requested media type is not supported |
Error |
PUT https://apis.wso2.com/api/am/store/v0.13/applications/{applicationId}/keys/{keyType}
This operation can be used to update grant types and callback url of an application. (Consumer Key and Consumer Secret are ignored) Upon succesfull you will retrieve the updated key details as the response.
apim:subscribe
i
PUT https://localhost:9443/api/am/store/v0.13/applications/896658a0-b4ee-4535-bbfa-806c894a4015/keys/SANDBOX
Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8
{
"supportedGrantTypes": [
"refresh_token",
"urn:ietf:params:oauth:grant-type:saml2-bearer",
"password",
"client_credentials",
"iwa:ntlm"
],
"callbackUrl": "http://sample/com/callback"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"consumerKey": "QwEtRHd4NJkcFuRUfAT5af8XEEoa",
"consumerSecret": "7Fairfeu321ENjOR9w2xgJl3i70a",
"supportedGrantTypes": [
"refresh_token",
"urn:ietf:params:oauth:grant-type:saml2-bearer",
"password",
"client_credentials",
"iwa:ntlm"
],
"callbackUrl": "http://sample/com/callback",
"keyState": "COMPLETED",
"keyType": "PRODUCTION"}
curl -k -H "Authorization: Bearer ae4eae22-3f65-387b-a171-d37eaa366fa8" -H "Content-Type: application/json" -X PUT -d @data.json "https://localhost:9443/api/am/store/v0.13/applications/c30f3a6e-ffa4-4ae7-afce-224d1f820524/keys/SANDBOX"
Type | Name | Description | Schema | Default |
---|---|---|---|---|
Path |
applicationId required |
Application Identifier consisting of the UUID of the Application. |
String | |
Path |
keyType required |
**Application Key Type** standing for the type of the keys (i.e. Production or Sandbox). Accepted values: PRODUCTION
SANDBOX
|
String | |
Body |
body required |
Grant types/Callback URL update request object |
ApplicationKey (ApplicationKey) |
HTTP Code | Description | Schema |
---|---|---|
200 |
Ok. Grant types or/and callback url is/are updated. |
ApplicationKey |
400 |
Bad Request. Invalid request or validation error |
Error |
404 |
Not Found. The resource to be updated does not exist. |
Error |
412 |
Precondition Failed. The request has not been performed because one of the preconditions is not met. |
Error |