FavouriteApi


Add to favourite Apps

Add to favourite Apps.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/{appType}/id/{appId}/add-to-favourite

HTTP Method

POST

Scope

appm:read

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/add-to-favourite"

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

Remove from favourite Apps

Remove from favourite Apps.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/{appType}/id/{appId}/remove-from-favourite

HTTP Method

POST

Scope

appm:read

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/remove-from-favourite"

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

Remove from favourite page

Remove from favourite page.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/favourite-page

HTTP Method

DELETE

Scope

appm:read

CURL Example

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

Sample Request

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default

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

Set as favourite page

Set as favourite page.\n

URL

http://apis.wso2.com/api/appm/store/v1.0/apps/favourite-page

HTTP Method

POST

Scope

appm:read

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/favourite-page"

Sample Response

HTTP/1.1 200 OK

Parameters

Type Name Description Schema Default

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