DocumentationGetting Creating an Application section in Organization for

DocumentationGetting StartedData StorageData QueriesEntity ConnectionsPush NotificationsSecurity & Token AuthenticationGeolocationAssets & FilesOrganization & Application ManagementOrganization & application managementOrganizationApplicationAdmin userUser Management & SocialCounter & EventApi ReferenceApplicationYou can create a new application in an organization through the Admin portal. The Admin portal creates the new application by issuing a post against the management endpoint (see the Creating an Application section in Organization for details). If you need to create an application programmatically in your app, you can also use the API to do this. You can access application entities using your app name or UUID, prefixed with the organization name or UUID:https://api.nobackend.id/{org_name|uuid}/{app_name|uuid}
Most mobile apps never access the application entity directly. For example you might have a server-side web app that accesses the application entity for configuration purposes. If you want to access your application entity programmatically, you can use the API.Creating an applicationTo create an application you POST a JSON object containing (at a minimum) the name of the new application. You will also need to pass authentication credentials.Request URIPOST /management/organizations|orgs/{org_name}|{org_uuid}/apps {request body}
ParametersParametersDescriptionTestgrant_typeQuery stringOnly the value ‘client_credentials’ is supported.client_idQuery stringThe org-level client id for your org, found in the ‘Org Administration’ menu of Usergrid portal.client_secretQuery stringThe org-level client secret for your org, found in the ‘Org Administration’ menu Usergrid portal.nameRequest BodyThe name of the application.Example – Requestcurl -X -i POST “https://api.nobackend.id/management/orgs/testorg/apps?grant_type=client_credentials&client_id=b3U68vghI6FmEeKn9wLoGtzz0A&client_secret=b3U6ZuZ5_U8Y-bOaViJt0OyRkJFES-A” -d ‘{“name”:”testapp1″}’
Example – Response{
“action”: “new application for organization”,
“timestamp”: 1338914698135,
“duration”: 701
}
Generating application credentialsUse the POST method to generate the client ID and client secret credentials for an application in an organization.Request URIPOST /organizations|orgs/{org_name}|{uuid}/applications|apps/{app_name}|{uuid}/credentials
ParametersParametersDescriptionString org_name OR arg org_uuidOrganization name or organization UUID.string app_name OR arg uuidApplication name or application UUID.NOTE: You also need to provide a valid access token with the API call. See Authenticating users and application clients for details.Example – Requestcurl -X POST “https://api.nobackend.id/management/orgs/testorg/apps/testapp1/credentials”
Example – Response{
“action”: “generate application client credentials”,
“timestamp”: 1349815979529,
“duration”: 535,
“credentials”: {
“client_id”: “YXA7ygil-f3TEeG-yhIxPQK1cQ”,
“client_secret”: “YXA65gYlqja8aYYSAy8Ox3Vg5aRZp48”
}
}
Getting application credentialsUse the GET method to retrieve the client ID and client secret credentials for an application in an organization.Request URIGET /organizations|orgs/{org_name}|{uuid}/applications|apps/{app_name}|{uuid}/credentials
ParametersParametersDescriptionString org_name OR arg org_uuidOrganization name or organization UUID.string app_name OR arg uuidApplication name or application UUID.NOTE: You also need to provide a valid access token with the API call. See Authenticating users and application clients for details.Example – Requestcurl -X GET “https://api.nobackend.id/management/orgs/testorg/apps/testapp1/credentials”
Example – Response{
“action”: “get application client credentials”,
“timestamp”: 1349816819545,
“duration”: 7,
“credentials”: {
“client_id”: “YXA7ygil-f3TEeG-yhIxPQK1cQ”,
“client_secret”: “YXA65gYlqja8aYYSAy8Ox3Vg5aRZp48”
}
}
Deleting and restoring ApplicationsNobackend allows you to clean-up your Organizations by deleting old Applications that you no longer need. With this feature, Applications are not really deleted but they are hidden from view and may be restored later. (At some point in the future, Nobackend may get the ability to completely obliterate an Application, but that ability does not exist at the time of this writing.)Delete Application: Request URIOnly an authenticated Admin User can delete and restore Applications. To delete an application, you send an authenticated HTTP DELETE request to the /management end-point. The Request URI must specify the Organization and the Application, both by identifier (name or UUID). Here is the Request URI pattern:/management/organizations|orgs/{org_name}|{uuid}/applications|apps/{app_name}
ParametersThis is intentionally redundant, but you must confirm that you really want to delete the Application by specifying its name or UUID, same as that which you used in the Request URI.ParametersDescriptionstring confirm_application_idApplication identifier (either name or UUID)NOTE: You also need to provide a valid access token with the API call. See Authenticating users and application clients for details.Delete Application: Example – RequestThis example deletes an aApplication named ‘testapp1’curl -X DELETE “https://api.nobackend.id/management/orgs/testorg/apps/testapp1?confirm_application_id=testapp1”
Delete Application: Example – ResponseThe response echos back the action that was taken and the params, and an HTTP 200 OK status message confirms that the Application has been deleted.HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 276
Content-Type: application/json
Date: Mon, 06 Jun 2016 18:52:04 GMT
Server: Apache-Coyote/1.1
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Sun, 05-Jun-2016 18:52:04 GMT
{
“action”: “delete”,
“application”: “d44dfc30-2c13-11e6-8b07-0a669fe1d66e”,
“applicationName”: “delete”,
“duration”: 3,
“organization”: “test-organization”,
“params”: {
“confirm_application_identifier”:
“testapp1”

},
“timestamp”: 1465239124645
}
Restore Application: Request URITo Restore an Application that has been deleted you must know the Application’s UUID. If you do a PUT to that application’s old URI, using he UUID to identify it, then the Application will be restored.Restore Application: Example – RequestFor example, to restore ‘testapp1’ that we deleted above:curl -X PUT “https://api.nobackend.id/management/orgs/test-organization/apps/d44dfc30-2c13-11e6-8b07-0a669fe1d66e access_token==YWMtZR…”
Restore Application: Example – ResponseHere’s the response that indicates via HTTP 200 OK that the Application has been restored.HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Content-Length: 223
Content-Type: application/json
Date: Mon, 06 Jun 2016 19:03:16 GMT
Server: Apache-Coyote/1.1
Set-Cookie: rememberMe=deleteMe; Path=/; Max-Age=0; Expires=Sun, 05-Jun-2016 19:03:16 GMT

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

{
“action”: “restore”,
“application”: “d44dfc30-2c13-11e6-8b07-0a669fe1d66e”,
“applicationName”: “delete”,
“duration”: 3,
“organization”: “test-organization”,
“params”: {},
“timestamp”: 1465239796913
}
Application Delete and Restore LimitationsAt the time of this writing there are a couple of limitations regarding Application Delete and Restore:Within an Organization, you cannot delete an Application with the same name as an Application that you have deleted before.Within an Organization, you cannot restore an Application is an application with the very same name has been added since the orginal one was deleted.Run ApiMethod                                 GET                             URLInput Jsongo clear ©2017 Nobackend. All rights reserved.This is an example of the control sidebar.