Table of contents:
- Common
1.1. Get reference tables
1.2. Registration
1.3. Log-in
1.4. Is logged?
1.5. Get profile
1.6. Password update
1.7. Log-out - Databases
2.1. Create database
2.2. List databases
2.3. Delete database - Docker containers
3.1. Create container
3.2. List containers
3.3. Delete container - Static sites
4.1. Deploy site
4.2. List sites
4.3. Undeploy site
This document covers only Requests, and does not cover corresponding Responses, because Response signatures are changing so often now. After the stable release the document will get update with the Responses.
curl https://dbend.areso.pro/list_regions
curl https://dbend.areso.pro/list_dbtypes
curl https://dbend.areso.pro/list_dbversions
curl https://dbend.areso.pro/list_dbenvs
curl -i -X POST -H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"histestpassword","tos_agree":true,"language":"en-us"}' \
https://dbend.areso.pro/register -v
For this project, accepted languages are "en-us" and "bg-bg".
For more limitations of the registration, please follow limitations.md
curl -i -X POST -H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"histestpassword"}' \
https://dbend.areso.pro/login
curl -i -X POST -H "Authorization: c4ac4567-1bf3-49cf-aae3-a398f36f0683" \
-H "Content-Type: application/json" \
https://dbend.areso.pro/is_logged -v
Should return empty object and HTTP code 200, if logged.
Should return msg code 5, unauthenticated, code 401, if not logged.
curl -i -X POST -H "Authorization: 3f7bc762-c6ac-41d0-affc-0c2f0fa7376b" \
https://dbend.areso.pro/get_profile -v
curl -i -X POST -H "Authorization: 3f7bc762-c6bc-41d9-affc-0c2f0fa7376b" \
-d '{"current_password": "histestpassword", "new_password": "62c6bc41d9affc0c2"}' \
https://dbend.areso.pro/password_update -v
curl -i -X POST -H "Authorization: 3f7bc762-c6bc-41d9-affc-0c2f0fa7376b" \
-H "Content-Type: application/json" https://dbend.areso.pro/logout -v
curl -i -X POST \
-H "Authorization: 754ebfb5-1d19-4a40-a5c8-aff5968b3b88" \
-d '{"dbtype":3, "dbversion":5, "env": 3,"region":3}' \
https://dbend.areso.pro/db_create -v
curl -i -X POST \
-H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" \
-H "Content-Type: application/json" https://dbend.areso.pro/db_list -v
Get details of one exact database:
curl -i -X POST \
-H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" \
-d '{"db_uuid":"066fc119-44ba-72ed-8000-977a1afe0eb8"}' \
https://dbend.areso.pro/db_list -v
curl -i -X POST \
-H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" \
-d '{"db_uuid":"066fc119-44ba-72ed-8000-977a1afe0eb8"}' \
https://dbend.areso.pro/db_delete -v
curl -i -X POST -H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" \
-d '{"source_url":"https://github.com/Areso/English-exercises","id_region":3,"branch":"master"}' \
https://dbend.areso.pro/site_deploy -v
curl -X POST -H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" https://dbend.areso.pro/site_list -v
Get details of one exact site:
curl -X POST -H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" \
-d '{"site_uuid":"066f9ba0-baa3-7003-8000-d66dced5bfa0"}' \
https://dbend.areso.pro/site_list -v
curl -X POST -H "Authorization: 754ebfb5-1a19-4a40-a5c8-aff5968b3b88" \
-d '{"site_uuid":"066f9ba0-baa3-7003-8000-d66dced5bfa0"}' \
https://dbend.areso.pro/site_undeploy -v