스토어프론트 호스팅
스토어프론트 검사 시작
작업 트리에 타입 검사·lint·test 하나를 시작한다(편집 환경 없이 된다, 마감 150초). 항상 202로 검사를 돌려주고 결과는 `GET checks/{checkId}`로 조회한다. 같은 종류가 돌고 있으면 그 검사, 다른 종류면 409 `CHECK_RUNNING`(`error.details.checkId`)
POST
작업 트리에 타입 검사·lint·test 하나를 시작한다(편집 환경 없이 된다, 마감 150초). 항상 202로 검사를 돌려주고 결과는 GET checks/{checkId}로 조회한다. 같은 종류가 돌고 있으면 그 검사, 다른 종류면 409 CHECK_RUNNING(error.details.checkId)
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
X-Store-Id*string대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다
application/json- body
check*stringValue in
"typecheck""lint""test"성공
application/json- response
meta*data*error*|nullcurl -X POST 'https://api.sayren.io/v1/storefront/site/checks' \
-H 'X-Store-Id: string' \
-H 'Content-Type: application/json' \
-d '{
"check": "typecheck"
}'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"checkId": "string",
"check": "string",
"status": "QUEUED",
"exitCode": 0,
"durationMs": 0,
"outputTail": "string",
"errorCode": "string",
"message": "string",
"createdAt": "string",
"startedAt": "string",
"finishedAt": "string"
},
"error": null
}