This is the REST API serving alt4 apps.
- Setup the core private repo as described here: https://github.com/alt4dev/core
- Create a
.envfile at the root of your project for building the docker image locally. The file should have:GITHUB_PATGithub access token that can access the core repoGITHUB_USERThe github access token the token belongs to
-
GET:/applicationsReturns a list of all applications accessible by the user -
POST:/applicationCreates a new application belonging to the current user -
PUT:/application/<app_id>Update an application
-
GET:/application/<app_id>/usersReturns a list of all the users in an application, or the current user object if the user doesn't have permission to access or edit other users -
POST:/application/<app_id>/userCreates a new application user. -
PUT:/application/<app_id>/user/<user_id>Update an application user, the current user must have users write permission.
-
GET:/application/<app_id>/user/<user_id>/keysReturns a list of all the keys owned by the user. -
GET:/application/<app_id>/user/<user_id>/key/<key_id>/tokensGet a list of all tokens that belong to a specific key. -
POST:/application/<app_id>/keyCreate a new key, the key will be created for the authorized application user.
-
POST:/application/<app_id>/key/<key_id>/tokenCreate a new token for the provided key. This operation only happens for the authorized user. -
GET:/application/<app_id>/key/<key_id>/tokensReturns a list of tokens that belong to the given key. -
PUT:/application/<app_id>/key/<key_id>/token/<token_id>Update a token. NB A token can only be deactivated or archived not updated.
GET:/application/<application_id>/logsQuery debug logs from an application