Schema APIs¶
GET
/schema¶
데이터베이스에서 모든 스키마 목록을 가져옵니다.
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}¶
새 데이터베이스 스키마를 생성합니다.
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-08-30