Schema APIs¶
GET
/schema¶
In order to get a list of all of your schemas from the database, use the method below.
import requests
import json
api_token = "Issued_API_TOKEN"
api_url = "https://{your-engine-url}/api/v1/schema/"
header = {
"Authorization": f"Bearer {api_token}"
}
r = requests.get(api_url, headers=header):
r.raise_for_status()
r.json()
curl -X 'GET' \
'https://{your-engine-url}/api/v1/schema/' \
-H 'accept: application/json' \
-H 'Authorization: Bearer Issued_API_TOKEN'
POST
/schema/{schema}¶
Creates a new database schema.
import requests
import json
api_token = "Issued_API_TOKEN"
base_url = "https://{your-engine-url}/api/v1/schema"
schema = "Name of schema to be created"
api_url = f"{base_url}/{schema}"
header = {
"Authorization": f"Bearer {api_token}"
}
r = requests.post(api_url, headers=header)
r.raise_for_status()
r.json()
curl -X 'POST' \
'https://{your-engine-url}/api/v1/schema/{schema}' \
-H 'accept: application/json' \
-H 'Authorization: Bearer Issued_API_TOKEN' \
-d ''
Last update:
2023-12-14