SubscriptionsApi


Get subscriptions for current user

Get subscriptions for current user.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/{appType}/id/{appId}/subscription

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET -H "Authorization: Bearer c8c4399ba38982a21372012294ad1a54" "http://localhost:9763/api/appm/store/v1.0/apps/webapp/id/80391fcb-45fc-4bb4-a83d-fc991a99084d/subscription"a

Sample Response

{"previous":"","next":"","count":2,"appList":[{"name":"app1","context":null,"id":"af929140-1257-46ed-97c0-d26098e140e9","rating":0.0,"lifecycleState":"IN-REVIEW","provider":"admin","description":"asdasd","version":"1"},{"name":"app2","context":null,"id":"5c9c8551-d696-4c44-85a6-dcd86f1a1e25","rating":0.0,"lifecycleState":"CREATED","provider":"admin","description":"phone","version":"1.0"}]}

Parameters

Type Name Description Schema Default
Path

appType

required

App Type. Either webapp or mobileapp\n

String

Path

appId

required

**APP ID** consisting of the **UUID** of the App.\nThe combination of the provider of the app, name of the appId and the version is also accepted as a valid App ID.\nShould be formatted as **provider-name-version**.\n

String

Header

Accept

optional

Media types acceptable for the response. Default is JSON.\n

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved\nvariant of the resourec.\n

String

Header

If-Modified-Since

optional

Validator for conditional requests; based on Last Modified header of the\nformerly retrieved variant of the resource.\n

String

Responses

HTTP Code Description Schema

200

OK.\nQualifying App is returned.\n

AppList

400

Bad Request.\nInvalid request or validation error.\n

Error

403

Forbidden.\nThe request must be conditional but no condition has been specified.\n

Error

404

Not Found.\nThe resource to be updated does not exist.\n

Error

Subscribe App

Subscribe to an existing App\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/{appType}/id/{appId}/subscription

HTTP Method

POST

Scope

appm:subscribe

CURL Example

curl -X POST -H "Authorization: Bearer c8c4399ba38982a21372012294ad1a54" -d '' "http://localhost:9763/api/appm/store/v1.0/apps/webapp/id/80391fcb-45fc-4bb4-a83d-fc991a99084d/subscription"

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Path

appType

required

App Type. Either webapp or mobileapp\n

String

Path

appId

required

**APP ID** consisting of the **UUID** of the App.\nThe combination of the provider of the app, name of the appId and the version is also accepted as a valid App ID.\nShould be formatted as **provider-name-version**.\n

String

Header

Content-Type

required

Media type of the entity in the body. Default is JSON.\n

String

JSON

Responses

HTTP Code Description Schema

200

OK.\n

400

Bad Request.\nInvalid request or validation error.\n

Error

403

Forbidden.\nThe request must be conditional but no condition has been specified.\n

Error

404

Not Found.\nResource to be deleted does not exist.\n

Error

412

Precondition Failed.\nThe request has not been performed because one of the preconditions is not met.\n

Error

Get subscribed user list

Get subscribed user list for a given App.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/{appType}/id/{appId}/subscription/users

HTTP Method

GET

Scope

appm:read

CURL Example

curl -X GET -H "Authorization: Bearer c8c4399ba38982a21372012294ad1a54" "http://localhost:9763/api/appm/store/v1.0/apps/webapp/id/80391fcb-45fc-4bb4-a83d-fc991a99084d/subscription"

Sample Response

{"userIds":["admin","user1","user2"]}

Parameters

Type Name Description Schema Default
Path

appType

required

App Type. Either webapp or mobileapp\n

String

Path

appId

required

**APP ID** consisting of the **UUID** of the App.\nThe combination of the provider of the app, name of the appId and the version is also accepted as a valid App ID.\nShould be formatted as **provider-name-version**.\n

String

Header

Accept

optional

Media types acceptable for the response. Default is JSON.\n

String

JSON

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved\nvariant of the resourec.\n

String

Header

If-Modified-Since

optional

Validator for conditional requests; based on Last Modified header of the\nformerly retrieved variant of the resource.\n

String

Responses

HTTP Code Description Schema

200

OK.\nQualifying App is returned.\n

UserIdList

400

Bad Request.\nInvalid request or validation error.\n

Error

403

Forbidden.\nThe request must be conditional but no condition has been specified.\n

Error

404

Not Found.\nThe resource to be updated does not exist.\n

Error

Check for subscription workflow

Check for subscription workflow.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/{appType}/id/{appId}/subscription-workflow

HTTP Method

POST

Scope

appm:subscribe

CURL Example

curl -X POST -H "Authorization: Bearer c8c4399ba38982a21372012294ad1a54" -d '' "http://localhost:9763/api/appm/store/v1.0/apps/webapp/id/80391fcb-45fc-4bb4-a83d-fc991a99084d/subscription-workflow"

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default
Path

appType

required

App Type. Either webapp or mobileapp\n

String

Path

appId

required

**APP ID** consisting of the **UUID** of the App.\nThe combination of the provider of the app, name of the appId and the version is also accepted as a valid App ID.\nShould be formatted as **provider-name-version**.\n

String

Header

Content-Type

required

Media type of the entity in the body. Default is JSON.\n

String

JSON

Responses

HTTP Code Description Schema

200

OK.\n

400

Bad Request.\nInvalid request or validation error.\n

Error

403

Forbidden.\nThe request must be conditional but no condition has been specified.\n

Error

404

Not Found.\nResource to be deleted does not exist.\n

Error

412

Precondition Failed.\nThe request has not been performed because one of the preconditions is not met.\n

Error