跳到主要内容

get

AppWrapper get(id)

GET /api/2.0/apps/{id}

Get an app

Returns one portal application by its identifier - one of the feature modules the portal can turn on, such as ai-rooms or docs-cloud - with the enabled state and the settings document stored for the current portal. The identifier must be an application declared in the installation configuration: take it from GET api/2.0/apps, because an unknown identifier is rejected instead of creating anything. Any authenticated portal member may read it. The call is read-only and idempotent. The result carries the identifier, the enabled flag of the current portal and the settings JSON document, which is empty while the portal has never saved settings for this application. An application that is not configured on this installation fails with 404, so this is also the way to find out whether an application exists here at all. Use GET api/2.0/apps to read all applications in one call, or GET api/2.0/apps/{id}/settings when only the settings document is needed.

Parameters​

NameInTypeDescriptionNotes
idpathStringThe application to read, by the identifier GET api/2.0/apps reports - one of the feature modules the portal can turn on, such as ai-room or docs-cloud. An identifier not declared in the installation configuration answers 404, which is also how a caller learns that an application does not exist here.[required] [example: ai-room]

Responses​

Status codeDescriptionTypeResponse headers
200The application with the enabled state and the settings of the current portalAppWrapperX-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
404No application with this identifier is configured on this installation--
401UnauthorizedErrorApiResponse-
429Too Many Requests.ErrorApiResponseRetry-After
500Internal Server Error.ErrorApiResponse-
400Bad Request.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

AppWrapper

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: Not defined
  • Accept: application/json