sayren Docs
스토어프론트 호스팅

스토어프론트 검사 시작

작업 트리에 타입 검사·lint·test 하나를 시작한다(편집 환경 없이 된다, 마감 150초). 항상 202로 검사를 돌려주고 결과는 `GET checks/{checkId}`로 조회한다. 같은 종류가 돌고 있으면 그 검사, 다른 종류면 409 `CHECK_RUNNING`(`error.details.checkId`)

POST
/v1/storefront/site/checks

작업 트리에 타입 검사·lint·test 하나를 시작한다(편집 환경 없이 된다, 마감 150초). 항상 202로 검사를 돌려주고 결과는 GET checks/{checkId}로 조회한다. 같은 종류가 돌고 있으면 그 검사, 다른 종류면 409 CHECK_RUNNING(error.details.checkId)

Authorization

accessToken
headerAuthorizationBearer <token>

Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)

Header Parameters

X-Store-Id*string

대상 상점 id. 토큰의 상점 범위 밖이면 403 STORE_NOT_GRANTED, 없으면 400 STORE_ID_REQUIRED다

Request Body

application/json
  1. body
check*string
Value in"typecheck""lint""test"

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
curl -X POST 'https://api.sayren.io/v1/storefront/site/checks' \  -H 'X-Store-Id: string' \  -H 'Content-Type: application/json' \  -d '{  "check": "typecheck"}'
{  "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}