The Mini App Center offers an API that provides endpoints for retrieving and modifying data from the Super App. This article contains an overview of these Endpoints.
Check the generic variables required to use the API.
Below is a summary of the available Endpoints for this API:
This endpoint allows you to retrieve details about a Super App identified by its unique id.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
{
"data": {
"id": "string",
"name": "string",
"organization_id": "GUID",
"security": "boolean"
}
}
If an error has occurred, it will return HTTP StatusCode 40x and the body as errors.
curl -X GET "$BASE_URL/v1/superapps/{id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
Creates a Super App.
{
"id": "string",
"name": "string",
"organization_id": "GUID", /*Only with Site Admin API token*/
"security": "boolean"
}
If the creation is successful, it will return HTTP response Status "201 Created" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X POST "$BASE_URL/v1/superapps" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"id": "com.genexus.verdantbank",
"name": "Verdant Bank",
"security": true
}'
This endpoint updates a specific Super App identified by its unique id.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
{
"name": "string",
"security": "boolean"
}
If the update is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X PUT "$BASE_URL/v1/superapps/{id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"name": "Verdant Bank",
"security": false
}'
Deletes a Super App identified by its unique id.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
If the deletion is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X DELETE "$BASE_URL/v1/superapps/{id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
Invites a member of the Super App.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
field |
string |
Field (required) |
{
"data": {
"superapp_id": "string",
"field": "string",
"required": "boolean",
"type": "string", /*CHR:Character, NUM:Number, VAL:Values*/,
"values": [
"string",
...
]
}
}
If an error has occurred, it will return HTTP StatusCode 40x and the body as errors.
curl -X GET "$BASE_URL/v1/superapps/{id}/attributes/{field}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
Creates an additional attribute to the Super App identified by its unique id.
{
"field": "string",
"required": "boolean",
"type": "string", /*CHR:Character, NUM:Number, VAL:Values*/,
"values": [
"string",
...
]
}
If the creation is successful, it will return HTTP response Status "201 Created" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X POST "$BASE_URL/v1/superapps/{id}/attributes" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"field": "COUNTRY",
"required": false,
"type": "VAL",
"values": [
"Argentina",
"Uruguay",
"Chile",
"Bolivia"
]
}'
Updates an additional attribute of a specific Super App identified by its unique id.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
field |
string |
Field (required) |
{
"required": "boolean",
"type": "string", /*CHR:Character, NUM:Number, VAL:Values*/,
"values": [
"string",
...
]
}
If the update is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X PUT "$BASE_URL/v1/superapps/{id}/attributes/{field}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"field": "COUNTRY",
"required": true,
"type": "CHR"
}'
Deletes an additional attribute of a Super App identified by its unique id.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
field |
string |
Field (required) |
If the deletion is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X DELETE "$BASE_URL/v1/superapps/{id}/attributes/{field}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
Gets details about a specific version of a Super App on a particular platform.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
platform_id |
string |
Platform ID (required) |
version_id |
int |
Version ID (required) |
{
"data": {
"superapp_id": "string",
"id": "int",
"name": "string"
}
}
if an error has occurred, it will return HTTP StatusCode 40x and the body as errors.
curl -X GET "$BASE_URL/v1/superapps/{id}/versions/{platform_id}/{version_id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json"
This endpoint creates a new version for a specific Super App identified by its unique id.
{
"platform_id": "string",
"name": "string"
}
If the creation is successful, it will return HTTP response Status "201 Created" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X POST "$BASE_URL/v1/superapps/{id}/versions" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"platform_id": "iOS",
"name": "Version for iOS"
}'
Updates a specific version of a Super App on a particular platform.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
platform_id |
string |
Platform ID (required) |
version_id |
int |
Version ID (required) |
{
"name": "string"
}
If the update is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X PUT "$BASE_URL/v1/superapps/{id}/versions/{platform_id}/{version_id}" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"name": "Version for iOS 1.0"
}'
Disables a specific version of a Super App on a particular platform.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
platform_id |
string |
Platform ID (required) |
version_id |
int |
Version ID (required) |
If the disabling is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X POST "$BASE_URL/v1/superapps/{id}/versions/{platform_id}/{version_id}/disable" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"name": "Version for iOS 1.0"
}'
Enables a specific version of a Super App on a particular platform.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
platform_id |
string |
Platform ID (required) |
version_id |
int |
Version ID (required) |
If the enabling is successful, it will return HTTP response Status "204 No Content" and no body. Otherwise, it will show HTTP StatusCode 40x and the body as errors.
curl -X POST "$BASE_URL/v1/superapps/{id}/versions/{platform_id}/{version_id}/enable" \
-H "APIKey-Auth: $API_TOKEN" \
-H "Accept: application/json" \
-d '{
"name": "Version for iOS 1.0"
}'
Gets the public key file associated with a specific version of a Super App on a particular platform.
Name |
Type |
Description |
id |
string |
Super app ID (required) |
platform_id |
string |
Platform ID (required) |
version_id |
int |
Version ID (required) |
Gets the .crt file with the Public Key of the Super App version. If an error has occurred, it will return HTTP StatusCode 40x and the body as errors.
curl -X GET "$BASE_URL/v1/superapps/{id}/versions/{platform_id}/{version_id}/public_key" \
-H "APIKey-Auth: $API_TOKEN" \