GET /api/contracts/{ContractID}/appdetails

Returns information about the app that's part of a specific app/API contract.

If you have the ContractID, you can use this operation to get more information about the contract.

Authorization Roles/Permissions: Must be logged in. To complete this operation successfully, a user must be a member of the applicable team (App team member or API Admin) or a Site Admin.

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/contracts/{ContractID}/appdetails

Back to top

Sample Request

The example below shows a request for the app details for the specified contract.

Request URL

https://{hostname}/api/contracts/cd0cf225-d142-4cf6-b97c-70b05ac90f50.acmepaymentscorp/appdetails

Sample request headers

Accept: application/json

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/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

X-Csrf-Token_{fedmemberID} The CSRF prevention header; may or may not be required, depending on platform settings. See CSRF Prevention on the Platform. By default, the CSRF header is not required for GET operations and is required for all others, with a few exceptions relating to user login.

Back to top

Request Parameters

Parameter Parm Type Data Type Required Description
ContractID Path string Required The unique ID for a specific contract between an app version and an API version.

Back to top

Response

If successful, this operation returns HTTP status code 200, with information about the app.

Back to top

Sample Response

The sample response below shows successful completion of this operation.

Sample response headers: application/json

Accept: application/json

Sample response body: application/json

{
  "Application" : {
    "AppID" : "edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp",
    "Name" : "crosfhocal",
    "Description" : "s",
    "Visibility" : "Public",
    "DefaultVersionID" : "7Mt79Ae96mR1fBfWr88PAa4O.acmepaymentscorp",
    "IsFollowed" : true,
    "RatingSummary" : {
      "Five" : 0,
      "Four" : 0,
      "Three" : 0,
      "Two" : 0,
      "One" : 0
    },
    "State" : "com.soa.app.state.active",
    "Created" : "2014-09-29T14:28:06Z",
    "Updated" : "2014-09-29T20:58:33Z",
    "AvatarURL" : "http://{hostname}/api/apps/edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp/avatar",
    "TeamID" : "appteam-edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp"
  },
  "ApplicationVersion" : {
    "RuntimeID" : "7Mt79Ae96mR1fBfWr88PAa4O.acmepaymentscorp",
    "AppID" : "edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp",
    "Name" : "1.0",
    "Description" : "s",
    "WebsiteAddress" : "",
    "Visibility" : "Public",
    "InitialEnvironment" : "Sandbox",
    "CurrentEnvironment" : "Sandbox",
    "Tag" : [ ],
    "HasKeyInfo" : false,
    "Created" : "2014-09-29T14:28:06Z",
    "Updated" : "2014-09-29T20:58:33Z",
    "State" : "com.soa.app.state.review",
    "SecurityMechanisms" : [ "com.soa.security.mechanism.sharedsecret" ],
    "RatingSummary" : {
      "Five" : 0,
      "Four" : 0,
      "Three" : 0,
      "Two" : 0,
      "One" : 0
    },
    "Identity" : "acmepaymentscorp-7Mt79Ae96mR1fBfWr88PAa4O"
  }
}

Back to top

Sample response headers: application/vnd.soa.v72+xml

Accept: application/vnd.soa.v72+xml

Sample response body: application/vnd.soa.v72+xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ContractApplication xmlns="http://soa.com/xsd/contract/1.0" xmlns:ns2="http://soa.com/xsd/user/1.0" xmlns:ns3="http://soa.com/xsd/app/1.0" xmlns:ns4="http://soa.com/xsd/legals/1.0" 
xmlns:ns5="http://soa.com/xsd/dnmodel/1.0" xmlns:ns6="http://soa.com/xsd/resource/1.0" xmlns:ns7="http://soa.com/xsd/business/1.0" xmlns:ns8="http://soa.com/xsd/api/1.0">
  <ns3:Application>
    <ns3:AppID>edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp</ns3:AppID>
    <ns3:Name>crosfhocal</ns3:Name>
    <ns3:Description>s</ns3:Description>
    <ns3:Visibility>Public</ns3:Visibility>
    <ns3:DefaultVersionID>7Mt79Ae96mR1fBfWr88PAa4O.acmepaymentscorp</ns3:DefaultVersionID>
    <ns3:IsFollowed>true</ns3:IsFollowed>
    <ns6:RatingSummary>
      <ns6:Five>0</ns6:Five>
      <ns6:Four>0</ns6:Four>
      <ns6:Three>0</ns6:Three>
      <ns6:Two>0</ns6:Two>
      <ns6:One>0</ns6:One>
    </ns6:RatingSummary>
    <ns3:State>com.soa.app.state.active</ns3:State>
    <ns3:Created>2014-09-29T14:28:06Z</ns3:Created>
    <ns3:Updated>2014-09-29T20:58:33Z</ns3:Updated>
    <ns3:AvatarURL>http://{hostname}/api/apps/edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp/avatar</ns3:AvatarURL>
    <ns3:TeamID>appteam-edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp</ns3:TeamID>
  </ns3:Application>
  <ns3:ApplicationVersion>
    <ns3:RuntimeID>7Mt79Ae96mR1fBfWr88PAa4O.acmepaymentscorp</ns3:RuntimeID>
    <ns3:AppID>edd68f66-3153-4169-a49f-a4315e76e304.acmepaymentscorp</ns3:AppID>
    <ns3:Name>1.0</ns3:Name>
    <ns3:Description>s</ns3:Description>
    <ns3:WebsiteAddress></ns3:WebsiteAddress>
    <ns3:Visibility>Public</ns3:Visibility>
    <ns3:InitialEnvironment>Sandbox</ns3:InitialEnvironment>
    <ns3:CurrentEnvironment>Sandbox</ns3:CurrentEnvironment>
    <ns3:HasKeyInfo>false</ns3:HasKeyInfo>
    <ns3:Created>2014-09-29T14:28:06Z</ns3:Created>
    <ns3:Updated>2014-09-29T20:58:33Z</ns3:Updated>
    <ns3:State>com.soa.app.state.review</ns3:State>
    <ns3:SecurityMechanisms>com.soa.security.mechanism.sharedsecret</ns3:SecurityMechanisms>
    <ns6:RatingSummary>
      <ns6:Five>0</ns6:Five>
      <ns6:Four>0</ns6:Four>
      <ns6:Three>0</ns6:Three>
      <ns6:Two>0</ns6:Two>
      <ns6:One>0</ns6:One>
    </ns6:RatingSummary>
    <ns3:Identity>acmepaymentscorp-7Mt79Ae96mR1fBfWr88PAa4O</ns3:Identity>
  </ns3:ApplicationVersion>
</ContractApplication>

Back to top

Response Headers

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

Header Description
Content-Type

application/json, application/xml

application/vnd.soa.v71+json, application/vnd.soa.v71+xml

application/vnd.soa.v72+json, application/vnd.soa.v72+xml

application/vnd.soa.v80+json, application/vnd.soa.v80+xml

application/vnd.soa.v81+json, application/vnd.soa.v81+xml

Back to top

Response Body

Name Type Description
ContractApplication ContractApplication Contains information about the app that's part of a specific app/API contract.

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. You would also get this response for any operation that requires login (almost all) if the login cookie was missing.
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics