Skip to Content
Sayren 유저가이드
스토어프론트 호스팅

스토어프론트 규칙 검증

작업 트리를 생성 규칙과 대조한다(`verify_storefront`와 같은 보고서). 편집 환경이 꺼져 있어도 된다

POST
/v1/storefront/site/verify

작업 트리를 생성 규칙과 대조한다(verify_storefront와 같은 보고서). 편집 환경이 꺼져 있어도 된다

Authorization

accessToken
headerAuthorizationBearer <JWT>

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

Header Parameters

X-Store-Id*string

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

Response Body

성공

application/json
  1. response
meta*
data*
error*|null
Example Request
curl -X POST 'https://api.sayren.io/v1/storefront/site/verify' \
  -H 'X-Store-Id: string'
Example Response
{
  "meta": {
    "status": 200,
    "code": "OK",
    "message": "OK",
    "isSuccess": true
  },
  "data": {
    "ok": true,
    "checkedFiles": 0,
    "summary": {
      "rules": 0,
      "passed": 0,
      "violated": 0,
      "findings": 0
    },
    "results": [
      {
        "ruleId": "string",
        "status": "pass",
        "count": 0,
        "severity": "error"
      }
    ],
    "findings": [
      {
        "ruleId": "string",
        "rule": "string",
        "file": "string",
        "line": 0,
        "detail": "string",
        "cause": "string",
        "fix": "string",
        "example": "string",
        "doc": "string",
        "docUrl": "string",
        "templateFile": "string",
        "severity": "error"
      }
    ],
    "message": "string",
    "nextSteps": [
      "string"
    ]
  },
  "error": null
}