스토어프론트 호스팅
Git 원천 조회
발행한 소스를 둔 저장소와 상태다. `mainChanged`면 발행 전 작업이 지금 운영 브랜치 위가 아니고, `autoPromotePaused`면 되돌린 상태다
GET
발행한 소스를 둔 저장소와 상태다. mainChanged면 발행 전 작업이 지금 운영 브랜치 위가 아니고, autoPromotePaused면 되돌린 상태다
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/storefront/site/git' \
-H 'X-Store-Id: string'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"provider": "GITHUB",
"repository": "string",
"productionBranch": "string",
"rootDirectory": "string",
"includePaths": [
"string"
],
"excludePaths": [
"string"
],
"connectedAt": "string",
"headCommitSha": "string",
"mainChanged": true,
"autoPromotePaused": true,
"publishPending": true,
"publishErrorCode": "string",
"archivedWorkRef": "string",
"lastDisconnect": {
"reason": "string",
"repository": "string",
"at": "string"
}
},
"error": null
}