GET /api/apps/{AppID}

Returns information about an app.

Authorization Roles/Permissions: App team member, Business Admin, or Site Admin.

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/apps/{AppID}[?][IncludeSettings={boolean}][&]{IncludeTags={boolean}]
[&]{IncludeIsFollowed={boolean}][&]{IncludeAvatarURL={boolean}]

Back to top

Sample Request

The example below requests information for the specified app.

Sample request URL #1

https://{hostname}/api/apps/app16964.acmepaymentscorp

Sample request URL #2

https://{hostname}/api/apps/app16964.acmepaymentscorp?IncludeSettings=true

Sample request headers

GET /api/apps/app16964.acmepaymentscorp HTTP/1.1
Host: {hostname}
Accept: application/json, text/javascript, */*; q=0.01
X-Csrf-Token_{tenant}: {TokenID}

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept application/json, application/vnd.soa.v71+json, application/vnd.soa.v72+json, application/vnd.soa.v80+json, application/vnd.soa.v81+json

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
AppID Path string Required The unique ID for a specific app.
IncludeSettings Query boolean Optional Indicates whether the settings for the resource should be included in the response. If not specified, defaults to false.
IncludeTags Query boolean Optional Indicates whether tags should be returned in the response. If not specified, defaults to true.
IncludeIsFollowed Query boolean Optional Indicates whether information on whether the resource is followed should be returned in the response. If not specified, defaults to true.
IncludeAvatarURL Query boolean Optional Indicates whether the avatar URL should be returned in the response. If not specified, defaults to true.

Back to top

Response

If successful, this operation returns HTTP status code 200, with information about the requested app. The information is returned as a JSON object.

Back to top

Sample Response

The sample response below is a response to the sample request above.

Sample response headers

HTTP/1.1 200 OK
Content-Type: application/json
Date: Mon, 21 Sep 2015 15:53:35 GMT

Sample response body #1

{
  "AppID" : "565ae475-528b-4d06-b9c3-182424562dad.acmepaymentscorp",
  "Name" : "PaaStime",
  "Description" : "Android game",
  "Visibility" : "Public",
  "DefaultVersionID" : "1Fk3yb00bXP2yW0WCwlkrn1c.acmepaymentscorp",
  "IsFollowed" : true,
  "RatingSummary" : {
    "Five" : 1,
    "Four" : 1,
    "Three" : 2,
    "Two" : 0,
    "One" : 0
  },
  "State" : "com.soa.app.state.active",
  "Created" : "2015-09-21T20:36:31Z",
  "Updated" : "2015-09-21T20:46:36Z",
  "AvatarURL" : "https://{hostname}/api/apps/565ae475-528b-4d06-b9c3-182424562dad.acmepaymentscorp/avatar"
}

Sample response body #2

IncludeSettings parameter was set to true in the request, so app settings are included in the response.

{
  "AppID" : "app16964.acmepaymentscorp",
  "Name" : "PaaStime",
  "Description" : "Android game",
  "Visibility" : "Limited",
  "DefaultVersionID" : "4iXro2Uxs2h4LviCshR9pK9w.acmepaymentscorp",
  "IsFollowed" : true,
  "RatingSummary" : {
    "Five" : 1,
    "Four" : 1,
    "Three" : 2,
    "Two" : 0,
    "One" : 1
  },
  "State" : "com.soa.app.state.active",
  "Created" : "2012-11-09T15:30:43Z",
  "Updated" : "2013-06-11T22:45:58Z",
  "AvatarURL" : "https://{hostname}/api/apps/565ae475-528b-4d06-b9c3-182424562dad.acmepaymentscorp/avatars/b49540e4-a45e-4186-807f-a4e74d94fd83.png",
  "AppSettings" : {
    "PublicAppSupport" : "com.soa.feature.enabled",
"PublicAppBoardSupport" : "com.soa.feature.enabled",
"PublicAppRatingsSupport" : "com.soa.feature.enabled",
"PublicAppReviewsSupport" : "com.soa.feature.enabled",
"PrivateAppSupport" : "com.soa.feature.enabled",
"PrivateAppBoardSupport" : "com.soa.feature.enabled",
"PrivateAppRatingsSupport" : "com.soa.feature.enabled",
"PrivateAppReviewsSupport" : "com.soa.feature.enabled",
"UserDefinedIdentitySupport" : "com.soa.feature.enabled.for.siteadmins",
"SimultaneousSandboxProductAccessSupport" : "com.soa.feature.enabled",
"ReturnPlainTextSharedSecret" : "com.soa.feature.enabled" } }

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type application/json, application/vnd.soa.v71+json, application/vnd.soa.v72+json, application/vnd.soa.v80+json, application/vnd.soa.v81+json

Back to top

Response Body

Name Type Description
Application Application Information about the app, including: AppID, Name, DefaultVersionID, IsFollowed, RatingSummary, State, Created, and Updated. The response includes settings if they were requested.

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
401 Unauthorized. For example, you would get this response if you didn't include the custom X-Csrf-Token_{fedmemberID} header in the request, when it was required by the platform settings; or if you included an invalid or expired value for this header.
404 The app could not be found.
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics