주문 플로우 작성 안내
흐름 작성 안내
흐름을 노드·연결선 단위로 짤 때 읽는다. 노드·블록 목록(종류·kind·출력·한 줄 설명), 연결선 조건 형식, 식 컨텍스트·함수, 규칙, 조작 예시. 순서: 이 안내 → `draft/nodes`·`draft/edges` → 고칠 노드만 `draft/nodes/{nodeId}` → 새로 쓸 종류만 `flow-node-types/{type}` → `draft/operations`.
GET
흐름을 노드·연결선 단위로 짤 때 읽는다. 노드·블록 목록(종류·kind·출력·한 줄 설명), 연결선 조건 형식, 식 컨텍스트·함수, 규칙, 조작 예시. 순서: 이 안내 → draft/nodes·draft/edges → 고칠 노드만 draft/nodes/{nodeId} → 새로 쓸 종류만 flow-node-types/{type} → draft/operations.
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
X-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
성공
application/json- response
meta*data*error*|nullcurl -X GET 'https://api.sayren.io/v1/flow-authoring-guide' \
-H 'X-Store-Id: string'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"nodes": [
{
"type": "string",
"name": "string",
"kind": "string",
"outputs": [
"string"
],
"description": "string"
}
],
"blocks": [
{
"type": "string",
"effect": "string",
"description": "string"
}
],
"triggers": [
{
"type": "string",
"format": "string",
"description": "string"
}
],
"context": {
"property1": "string",
"property2": "string"
},
"functions": [
{
"name": "string",
"signature": "string",
"doc": "string"
}
],
"templateFilters": [
"string"
],
"rules": [
"string"
],
"expressionExamples": [
{
"expr": "string",
"description": "string"
}
],
"operationExample": [
{
"property1": null,
"property2": null
}
]
},
"error": null
}