스토어프론트 호스팅
스토어프론트 작업 트리 압축 파일 조각
`sourceRef`의 압축 파일을 4MiB 조각(base64)으로 준다. 스냅샷은 불변이라 나눠 받아도 섞이지 않는다
GET
sourceRef의 압축 파일을 4MiB 조각(base64)으로 준다. 스냅샷은 불변이라 나눠 받아도 섞이지 않는다
accessTokenheader
AuthorizationBearer <JWT>Sayren 계정 토큰(로그인 토큰 또는 개인 액세스 토큰, RFC 9068 JWT)
sourceRef*string작업 트리 스냅샷 (sources/{siteId}/{sha256}.tgz, 내용 주소)
Match
^sources\/sfs_[a-z0-9]{8,40}\/[0-9a-f]{64}\.tgz$part?integer조각 번호 (0부터, 기본 0)
Range
0 <= value <= 100X-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/source/archive?sourceRef=string' \
-H 'X-Store-Id: string'Example Response
{
"meta": {
"status": 200,
"code": "OK",
"message": "OK",
"isSuccess": true
},
"data": {
"sourceRef": "string",
"part": 0,
"parts": 0,
"offset": 0,
"bytes": 0,
"totalBytes": 0,
"content": "string"
},
"error": null
}