feat(api-docs): 요청/응답 예시 블록 + 8종 결함 근본 수정 + audit error 승격
API 레퍼런스에 요청 예시(raw HTTP)·응답 예시(envelope 전문)를 표준 포맷에 편입하고, 전 대상(코어+전 모듈+전 플러그인)에 방출했다. 예시 결함 8종 (multipart·Host 마스킹·write 실측·path 치환·현실적 바디·query 반영·중복 제거·민감값 마스킹)을 스캐폴더/프로브 공용 수정으로 근본 해소했다. 추가로 검증에서 드러난 결함을 마감했다: - 응답 예시 body 의 절대 URL(페이지네이터·콜백) 호스트를 placeholder 로 마스킹(maskResponseHost) — 요청 Host 헤더만 마스킹되던 누락 보완, 확장 39건 정정 - api:docgen 커맨드 통합 테스트 신설(라우트 수집·확장 라우팅·rules 추출· 멱등 재생성·check drift) - module-routing.md URL 스킴 오류 정정(/api/admin → /api/modules) - README·cheatsheet·api-documentation 에 API 문서 커맨드/레퍼런스 진입점 반영 전 대상 3칸 완료로 api-doc-coverage 룰을 warn→error 승격.
This commit is contained in:
1 parent
70452745c4
commit
56a78e1d55
114 files changed
+60782
-197
No files matched your search
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/gnuboard7-hello_module/memos HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 필드는 사람이 작성하세요. -->
|
||||
@@ -74,6 +83,15 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/gnuboard7-hello_module/memos/{id} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/me/activity-stats HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -37,6 +46,24 @@ _단건 응답: `data` 객체의 필드._
|
||||
| total_comments | integer | `0` | 회원 본인이 작성한 게시글들의 댓글 수 합계(SUM of comments_count)입니다. 비활성 게시판 글은 제외됩니다. |
|
||||
| total_views | integer | `42` | 회원 본인이 작성한 게시글들의 누적 조회수 합계(SUM of view_count)입니다. 비활성 게시판 글은 제외됩니다. |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "활동 통계를 조회했습니다.",
|
||||
"data": {
|
||||
"total_posts": 1,
|
||||
"total_comments": 0,
|
||||
"total_views": 44
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/me/board-activities HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -47,6 +56,75 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| created_at_formatted | string | `4시간 전` | `created_at` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| content_plain | string | `API 레퍼런스 실측용 완전 샘플 게시글 본문입니다.` | 게시글 본문의 순수 텍스트입니다. HTML 모드 글은 태그를 제거한 평문으로 변환되며, 목록 미리보기용으로 사용합니다. |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "내 활동 게시글을 조회했습니다.",
|
||||
"data": {
|
||||
"current_page": 1,
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"board_slug": "apidoc-sample-board",
|
||||
"board_name": "API 문서 샘플 게시판",
|
||||
"activity_type": "authored",
|
||||
"activity_count": 0,
|
||||
"title": "API 문서 샘플 게시글",
|
||||
"is_secret": "{MASKED}",
|
||||
"status": "published",
|
||||
"view_count": 44,
|
||||
"comment_count": 0,
|
||||
"created_at": "2026-07-08 10:41:34",
|
||||
"created_at_formatted": "4시간 전",
|
||||
"content_plain": "API 레퍼런스 실측용 완전 샘플 게시글 본문입니다."
|
||||
}
|
||||
],
|
||||
"first_page_url": "https://api.example.com/api/modules/sirsoft-board/me/board-activities?page=1",
|
||||
"from": 1,
|
||||
"last_page": 1,
|
||||
"last_page_url": "https://api.example.com/api/modules/sirsoft-board/me/board-activities?page=1",
|
||||
"links": [
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.previous",
|
||||
"page": null,
|
||||
"active": false
|
||||
},
|
||||
{
|
||||
"url": "https://api.example.com/api/modules/sirsoft-board/me/board-activities?page=1",
|
||||
"label": "1",
|
||||
"page": 1,
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.next",
|
||||
"page": null,
|
||||
"active": false
|
||||
}
|
||||
],
|
||||
"next_page_url": null,
|
||||
"path": "https://api.example.com/api/modules/sirsoft-board/me/board-activities",
|
||||
"per_page": 25,
|
||||
"prev_page_url": null,
|
||||
"to": 1,
|
||||
"total": 1,
|
||||
"query": {
|
||||
"board_slug": "",
|
||||
"search": "",
|
||||
"sort": "latest",
|
||||
"activity_type": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/board-types HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -35,6 +44,45 @@ _요청 파라미터 없음._
|
||||
| slug | string | `basic` | 유형 식별자 (basic, card, gallery 등) |
|
||||
| name | object | `{"ko":"기본형","en":"Basic List","ja":"基本形"}` | 유형명 (다국어: {"ko": "기본형", "en": "Basic List"}) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "게시판 유형 목록을 조회했습니다.",
|
||||
"data": [
|
||||
{
|
||||
"id": 2,
|
||||
"slug": "basic",
|
||||
"name": {
|
||||
"ko": "기본형",
|
||||
"en": "Basic List"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"slug": "gallery",
|
||||
"name": {
|
||||
"ko": "갤러리형",
|
||||
"en": "Gallery"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"slug": "card",
|
||||
"name": {
|
||||
"ko": "카드형",
|
||||
"en": "Card"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -60,10 +108,29 @@ _요청 파라미터 없음._
|
||||
| slug | body | string | 예 | max 50 | URL 친화 식별자 (slug) |
|
||||
| name | body | string | 예 | — | 대상의 이름/명칭 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-board/admin/board-types HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"slug": "example-key",
|
||||
"name": "예시 이름"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -89,10 +156,23 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-board/admin/board-types/2 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -119,10 +199,28 @@ _요청 파라미터 없음._
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
| name | body | string | 예 | — | 대상의 이름/명칭 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-board/admin/board-types/2 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "예시 이름"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/dashboard/overview HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -36,6 +45,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| today_posts | integer | `0` | 오늘 등록된 새 게시글 수입니다. board_stats 집계 테이블의 오늘 행에서 읽으며, 행이 없으면 0 을 반환합니다(최대 1시간 지연). |
|
||||
| today_comments | integer | `0` | 오늘 등록된 새 댓글 수입니다. board_stats 집계 테이블의 오늘 행에서 읽으며, 행이 없으면 0 을 반환합니다(최대 1시간 지연). |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-board::messages.dashboard.fetch_success",
|
||||
"data": {
|
||||
"today_posts": 0,
|
||||
"today_comments": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -59,6 +85,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| limit | query | integer | 아니오 | min 1, max 50 | 반환할 최대 항목 수 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/dashboard/pending-reports?limit=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -68,6 +103,38 @@ _단건 응답: `data` 객체의 필드._
|
||||
| items | array | `[{"id":7,"board_slug":"qna","board_name":"Q&A","target_ty…` | 전체 게시판을 가로질러 조회한 미처리 신고 항목 목록입니다. 각 항목은 신고 대상 게시판(board_slug/board_name), 대상 종류(target_type), 대상 제목/발췌(target_title/target_excerpt), 상태, 신고 시각을 포함합니다. `limit` 개까지 반환됩니다. |
|
||||
| total | integer | `16` | 전체 개수 (집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-board::messages.dashboard.fetch_success",
|
||||
"data": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"board_slug": "apidoc-sample-board",
|
||||
"board_name": "API 문서 샘플 게시판",
|
||||
"target_type": "post",
|
||||
"target_type_label": "게시글",
|
||||
"target_post_id": 1,
|
||||
"target_title": "API 문서 샘플 게시글",
|
||||
"target_excerpt": null,
|
||||
"status": "pending",
|
||||
"status_label": "접수",
|
||||
"author_name": "API 문서 샘플 사용자",
|
||||
"last_reported_at": "4시간 전"
|
||||
}
|
||||
],
|
||||
"total": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -90,6 +157,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/dashboard/post-graph HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -104,6 +180,64 @@ _단건 응답: `data` 객체의 필드._
|
||||
| updated_at | null | `null` | 최종 수정 일시 |
|
||||
| updated_at_display | string | `` | 집계 행의 최종 갱신 시각(updated_at)을 모듈 날짜 표시 형식(display.date_display_format 설정)으로 포맷한 표시용 문자열입니다. 집계 행이 없으면 빈 문자열입니다. |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-board::messages.dashboard.fetch_success",
|
||||
"data": {
|
||||
"days": [
|
||||
{
|
||||
"date": "2026-07-02",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-03",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-04",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-05",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-06",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-07",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-08",
|
||||
"post_count": 0,
|
||||
"comment_count": 0
|
||||
}
|
||||
],
|
||||
"total_posts": 0,
|
||||
"total_comments": 0,
|
||||
"posts_change": null,
|
||||
"comments_change": null,
|
||||
"updated_at": null,
|
||||
"updated_at_display": ""
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -127,6 +261,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| limit | query | integer | 아니오 | min 1, max 50 | 반환할 최대 항목 수 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/dashboard/recent-posts?limit=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -139,6 +282,30 @@ _단건 응답: `data` 객체의 필드._
|
||||
| comments_count | integer | `0` | comments 개수 (집계) |
|
||||
| created_at | string | `4시간 전` | 생성 일시 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-board::messages.dashboard.fetch_success",
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"board_slug": "apidoc-sample-board",
|
||||
"board_name": "API 문서 샘플 게시판",
|
||||
"title": "API 문서 샘플 게시글",
|
||||
"author_name": "API 문서 샘플 사용자",
|
||||
"comments_count": 0,
|
||||
"created_at": "4시간 전"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/me/my-comments HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -42,6 +51,69 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| created_at | string | `2026-07-07 09:34:50` | 생성 일시 |
|
||||
| created_at_formatted | string | `4시간 전` | `created_at` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "내 활동 게시글을 조회했습니다.",
|
||||
"data": {
|
||||
"current_page": 1,
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"board_slug": "apidoc-sample-board",
|
||||
"board_name": "API 문서 샘플 게시판",
|
||||
"post_title": "API 문서 샘플 게시글",
|
||||
"post_id_val": 1,
|
||||
"content": "API 문서 샘플 댓글입니다.",
|
||||
"created_at": "2026-07-08 10:41:34",
|
||||
"created_at_formatted": "4시간 전"
|
||||
}
|
||||
],
|
||||
"first_page_url": "https://api.example.com/api/modules/sirsoft-board/me/my-comments?page=1",
|
||||
"from": 1,
|
||||
"last_page": 1,
|
||||
"last_page_url": "https://api.example.com/api/modules/sirsoft-board/me/my-comments?page=1",
|
||||
"links": [
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.previous",
|
||||
"page": null,
|
||||
"active": false
|
||||
},
|
||||
{
|
||||
"url": "https://api.example.com/api/modules/sirsoft-board/me/my-comments?page=1",
|
||||
"label": "1",
|
||||
"page": 1,
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.next",
|
||||
"page": null,
|
||||
"active": false
|
||||
}
|
||||
],
|
||||
"next_page_url": null,
|
||||
"path": "https://api.example.com/api/modules/sirsoft-board/me/my-comments",
|
||||
"per_page": 25,
|
||||
"prev_page_url": null,
|
||||
"to": 1,
|
||||
"total": 1,
|
||||
"query": {
|
||||
"board_slug": "",
|
||||
"search": "",
|
||||
"sort": "latest"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -38,6 +38,15 @@
|
||||
| sort_order | query | string | 아니오 | `asc`, `desc` | 정렬 방향 (asc 오름차순 / desc 내림차순) |
|
||||
| per_page | query | integer | 아니오 | — | 페이지당 항목 수 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/reports?filters=%EC%98%88%EC%8B%9C%EA%B0%92&status=%EC%98%88%EC%8B%9C%EA%B0%92&target_type=%EC%98%88%EC%8B%9C%EA%B0%92&target_status=%EC%98%88%EC%8B%9C%EA%B0%92&board_id=1&reported_at_from=%EC%98%88%EC%8B%9C%EA%B0%92&reported_at_to=%EC%98%88%EC%8B%9C%EA%B0%92&sort_by=%EC%98%88%EC%8B%9C%EA%B0%92&sort_order=asc&per_page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -75,6 +84,92 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| is_owner | boolean | `false` | 현재 인증 사용자가 이 리소스의 소유자인지 여부 (BaseApiResource 표준 메타) |
|
||||
| abilities | object | `{"can_view":true,"can_manage":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "신고 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"board_id": 1,
|
||||
"board": {
|
||||
"id": 1,
|
||||
"name": "API 문서 샘플 게시판",
|
||||
"slug": "apidoc-sample-board",
|
||||
"title": null,
|
||||
"current_status": null,
|
||||
"deleted_at": null
|
||||
},
|
||||
"target_type": "post",
|
||||
"target_type_label": "게시글",
|
||||
"target_id": 1,
|
||||
"post_id": 1,
|
||||
"content": null,
|
||||
"content_mode": "text",
|
||||
"content_preview": "",
|
||||
"author": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자",
|
||||
"email": "apidoc-sample-user@example.com",
|
||||
"is_guest": false
|
||||
},
|
||||
"reporter": null,
|
||||
"reason_type": null,
|
||||
"reason_type_label": null,
|
||||
"status": "pending",
|
||||
"status_label": "접수",
|
||||
"status_variant": "warning",
|
||||
"processor": null,
|
||||
"processed_at": null,
|
||||
"metadata": null,
|
||||
"report_count": 0,
|
||||
"last_reported_at": "2026-07-08 10:41:34",
|
||||
"is_reactivated": false,
|
||||
"target_status": "published",
|
||||
"target_trigger_type": "user",
|
||||
"target_status_label": "게시중",
|
||||
"created_at": "2026-07-08 10:41:34",
|
||||
"updated_at": "2026-07-08 10:41:34",
|
||||
"is_owner": false,
|
||||
"abilities": {
|
||||
"can_view": true,
|
||||
"can_manage": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"statistics": {
|
||||
"by_status": {
|
||||
"pending": 1
|
||||
},
|
||||
"by_type": {
|
||||
"post": 1
|
||||
},
|
||||
"total": 1
|
||||
},
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 20,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
},
|
||||
"abilities": {
|
||||
"can_view": true,
|
||||
"can_manage": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -102,10 +197,32 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| status | body | string | 예 | — | 일괄 전환할 신고 상태 (`ReportStatus` 허용값: pending/review/rejected/suspended 등). 지정한 모든 신고를 이 상태로 변경합니다. |
|
||||
| process_note | body | string | 아니오 | max 1000 | 처리 메모 (최대 1000자). 상태 변경 사유나 조치 내용을 처리 이력에 함께 기록합니다. |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-board/admin/reports/bulk-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"status": "예시값",
|
||||
"process_note": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -132,10 +249,31 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| ids | body | array | 예 | min 1 | 대상 리소스 식별자 배열 (대량 작업 대상) |
|
||||
| target_status | body | string | 아니오 | — | 집계 기준이 되는 전환 대상 상태 (`ReportStatus` 허용값). 지정 시 해당 상태로의 일괄 전환을 가정한 상태별 건수 요약을 계산합니다. |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-board/admin/reports/status-counts HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"target_status": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -161,9 +299,34 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| report | path | string | 예 | — | 대상 report의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-board/admin/reports/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "신고가 삭제되었습니다.",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -190,6 +353,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| report | path | string | 예 | — | 대상 report의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/reports/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -220,6 +392,70 @@ _단건 응답: `data` 객체의 필드._
|
||||
| created_at | string | `2026-06-04 09:35:42` | 생성 일시 |
|
||||
| updated_at | string | `2026-06-04 09:35:42` | 최종 수정 일시 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "신고 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"board_id": 1,
|
||||
"board": {
|
||||
"id": 1,
|
||||
"name": "API 문서 샘플 게시판",
|
||||
"slug": "apidoc-sample-board"
|
||||
},
|
||||
"target_type": "post",
|
||||
"target_id": 1,
|
||||
"post": {
|
||||
"id": 1,
|
||||
"title": "API 문서 샘플 게시글",
|
||||
"content": "<p>API 레퍼런스 실측용 완전 샘플 게시글 본문입니다.</p>",
|
||||
"content_mode": "html",
|
||||
"created_at": "2026-07-08 10:41:34",
|
||||
"author": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자",
|
||||
"email": "apidoc-sample-user@example.com",
|
||||
"is_guest": false
|
||||
}
|
||||
},
|
||||
"comment": null,
|
||||
"target_status": "published",
|
||||
"target_status_label": "게시중",
|
||||
"blind_trigger_type": "user",
|
||||
"blind_trigger_type_label": "사용자 직접 삭제",
|
||||
"status": "pending",
|
||||
"available_actions": [
|
||||
"review",
|
||||
"rejected",
|
||||
"suspended",
|
||||
"deleted"
|
||||
],
|
||||
"abilities": {
|
||||
"can_view": true,
|
||||
"can_manage": true
|
||||
},
|
||||
"reporters": [],
|
||||
"report_count": 0,
|
||||
"reason_summary": "-",
|
||||
"first_reported_at": "2026-07-08 10:41:34",
|
||||
"last_reported_at": "2026-07-08 10:41:34",
|
||||
"histories": [],
|
||||
"metadata": {
|
||||
"reason": "spam"
|
||||
},
|
||||
"created_at": "2026-07-08 10:41:34",
|
||||
"updated_at": "2026-07-08 10:41:34"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -247,6 +483,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| per_page | query | integer | 아니오 | min 1 | 페이지당 항목 수 |
|
||||
| page | query | integer | 아니오 | min 1 | 조회할 페이지 번호 (1부터 시작) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/reports/1/reporters?per_page=1&page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -261,6 +506,30 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| snapshot | object | `{"board_name":"갤러리","title":"작업물 공유합니다","content":"최근에 작업…` | 신고 접수 시점의 대상 콘텐츠 스냅샷 (게시판명/제목/본문/작성자 등). 이후 대상이 수정·삭제되어도 신고 당시 내용을 보존합니다. |
|
||||
| reported_at | string | `2026-06-04 09:35:42` | reported 일시 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "신고 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [],
|
||||
"pagination": {
|
||||
"total": 0,
|
||||
"from": 0,
|
||||
"to": 0,
|
||||
"per_page": 25,
|
||||
"current_page": 1,
|
||||
"last_page": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -289,10 +558,29 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| status | body | string | 예 | — | 전환할 신고 상태 (`ReportStatus` 허용값). 현재 상태에서 전환 불가한 값(영구삭제 등)은 검증에서 422로 차단됩니다. |
|
||||
| process_note | body | string | 아니오 | max 1000 | 처리 메모 (최대 1000자). 상태 변경 사유나 조치 내용을 처리 이력에 함께 기록합니다. |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-board/admin/reports/1/status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"status": "예시값",
|
||||
"process_note": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/settings HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -43,6 +52,291 @@ _단건 응답: `data` 객체의 필드._
|
||||
| abilities | object | `{"can_update":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
| _meta | object | `{"limits":{"per_page_min":5,"per_page_max":100,"min_title…` | 편집 UI 보조 메타데이터. `limits`에 `config('sirsoft-board.limits')` 기반 입력 제한값(페이지당 글 수·답글/댓글 깊이의 최소·최대 등)이 담겨 프론트 입력 검증 범위로 사용됩니다. |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-board::messages.settings.fetch_success",
|
||||
"data": {
|
||||
"basic_defaults": {
|
||||
"type": "basic",
|
||||
"per_page": 20,
|
||||
"per_page_mobile": 15,
|
||||
"order_by": "created_at",
|
||||
"order_direction": "DESC",
|
||||
"secret_mode": "{MASKED}",
|
||||
"use_comment": true,
|
||||
"use_reply": true,
|
||||
"max_reply_depth": 5,
|
||||
"max_comment_depth": 10,
|
||||
"comment_order": "ASC",
|
||||
"show_view_count": true,
|
||||
"use_report": false,
|
||||
"min_title_length": 2,
|
||||
"max_title_length": 200,
|
||||
"min_content_length": 2,
|
||||
"max_content_length": 10000,
|
||||
"min_comment_length": 2,
|
||||
"max_comment_length": 1000,
|
||||
"use_file_upload": false,
|
||||
"max_file_size": 10,
|
||||
"max_file_count": 5,
|
||||
"allowed_extensions": [
|
||||
"jpg",
|
||||
"jpeg",
|
||||
"png",
|
||||
"gif",
|
||||
"webp",
|
||||
"pdf",
|
||||
"doc",
|
||||
"docx",
|
||||
"xls",
|
||||
"xlsx",
|
||||
"ppt",
|
||||
"pptx",
|
||||
"hwp",
|
||||
"txt",
|
||||
"zip"
|
||||
],
|
||||
"notify_admin_on_post": true,
|
||||
"notify_author": true,
|
||||
"new_display_hours": 24,
|
||||
"blocked_keywords": [
|
||||
"시발",
|
||||
"씨발",
|
||||
"ㅅㅂ",
|
||||
"ㅆㅂ",
|
||||
"좆",
|
||||
"ㅈㄴ",
|
||||
"존나",
|
||||
"씹",
|
||||
"지랄",
|
||||
"ㅈㄹ",
|
||||
"개새끼",
|
||||
"새끼",
|
||||
"ㅅㄲ",
|
||||
"개자식",
|
||||
"병신",
|
||||
"ㅂㅅ",
|
||||
"미친놈",
|
||||
"미친년",
|
||||
"느금마",
|
||||
"니애미",
|
||||
"느금",
|
||||
"엠창",
|
||||
"엠뒤",
|
||||
"빡대가리",
|
||||
"개같은",
|
||||
"개년",
|
||||
"개놈",
|
||||
"개돼지",
|
||||
"개씹",
|
||||
"개쓰레기",
|
||||
"닥쳐",
|
||||
"꺼져",
|
||||
"죽어",
|
||||
"자살해",
|
||||
"뒤져",
|
||||
"저능아",
|
||||
"정신병자",
|
||||
"썅",
|
||||
"쌍놈",
|
||||
"쌍년",
|
||||
"쉬발",
|
||||
"쒸발",
|
||||
"시팔",
|
||||
"씨팔",
|
||||
"한남",
|
||||
"한녀",
|
||||
"김치녀",
|
||||
"된장녀",
|
||||
"맘충",
|
||||
"틀딱",
|
||||
"느개비",
|
||||
"장애인놈",
|
||||
"병신새끼",
|
||||
"흑형",
|
||||
"짱깨",
|
||||
"쪽바리",
|
||||
"왜놈",
|
||||
"튀기",
|
||||
"똥남아",
|
||||
"야동",
|
||||
"포르노",
|
||||
"섹스",
|
||||
"야사",
|
||||
"음란",
|
||||
"성인사이트",
|
||||
"조건만남",
|
||||
"원나잇",
|
||||
"섹파",
|
||||
"오피",
|
||||
"키스방",
|
||||
"매춘",
|
||||
"성매매",
|
||||
"몸파는"
|
||||
],
|
||||
"default_board_permissions": {
|
||||
"admin.posts.read": [
|
||||
"admin"
|
||||
],
|
||||
"admin.posts.write": [
|
||||
"admin"
|
||||
],
|
||||
"admin.posts.read-secret": [
|
||||
"admin"
|
||||
],
|
||||
"admin.comments.read": [
|
||||
"admin"
|
||||
],
|
||||
"admin.comments.write": [
|
||||
"admin"
|
||||
],
|
||||
"admin.attachments.upload": [
|
||||
"admin"
|
||||
],
|
||||
"admin.attachments.download": [
|
||||
"admin"
|
||||
],
|
||||
"admin.manage": [
|
||||
"admin"
|
||||
],
|
||||
"posts.read": [
|
||||
"admin",
|
||||
"user",
|
||||
"guest"
|
||||
],
|
||||
"posts.write": [
|
||||
"admin",
|
||||
"user"
|
||||
],
|
||||
"posts.read-secret": [
|
||||
"admin"
|
||||
],
|
||||
"comments.read": [
|
||||
"admin",
|
||||
"user",
|
||||
"guest"
|
||||
],
|
||||
"comments.write": [
|
||||
"admin",
|
||||
"user"
|
||||
],
|
||||
"attachments.upload": [
|
||||
"admin",
|
||||
"user"
|
||||
],
|
||||
"attachments.download": [
|
||||
"admin",
|
||||
"user",
|
||||
"guest"
|
||||
],
|
||||
"manager": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
},
|
||||
"report_policy": {
|
||||
"auto_hide_threshold": 5,
|
||||
"auto_hide_target": "both",
|
||||
"daily_report_limit": 10,
|
||||
"rejection_limit_count": 5,
|
||||
"rejection_limit_days": 30,
|
||||
"notify_admin_on_report": true,
|
||||
"notify_admin_on_report_scope": "per_case",
|
||||
"notify_admin_on_report_channels": [
|
||||
"mail",
|
||||
"database"
|
||||
],
|
||||
"notify_author_on_report_action": true,
|
||||
"notify_author_on_report_action_channels": [
|
||||
"mail",
|
||||
"database"
|
||||
]
|
||||
},
|
||||
"spam_security": {
|
||||
"post_cooldown_seconds": 0,
|
||||
"comment_cooldown_seconds": 0,
|
||||
"report_cooldown_seconds": 60,
|
||||
"view_count_cache_ttl": 86400
|
||||
},
|
||||
"display": {
|
||||
"date_display_format": "standard"
|
||||
},
|
||||
"seo": {
|
||||
"meta_boards_title": "{site_name}",
|
||||
"meta_boards_description": "",
|
||||
"meta_board_title": "{board_name}",
|
||||
"meta_board_description": "{board_description}",
|
||||
"meta_post_title": "{board_name} - {post_title}",
|
||||
"meta_post_description": "",
|
||||
"seo_boards": true,
|
||||
"seo_board": true,
|
||||
"seo_post_detail": true
|
||||
},
|
||||
"notifications": {
|
||||
"channels": [
|
||||
{
|
||||
"id": "mail",
|
||||
"is_active": true,
|
||||
"sort_order": 0
|
||||
},
|
||||
{
|
||||
"id": "database",
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"report_permissions": {
|
||||
"view_roles": [
|
||||
"admin",
|
||||
"apidoc-sample-role"
|
||||
],
|
||||
"manage_roles": [
|
||||
"admin",
|
||||
"apidoc-sample-role"
|
||||
]
|
||||
},
|
||||
"abilities": {
|
||||
"can_update": true
|
||||
},
|
||||
"_meta": {
|
||||
"limits": {
|
||||
"per_page_min": 5,
|
||||
"per_page_max": 100,
|
||||
"min_title_length_min": 0,
|
||||
"min_title_length_max": 200,
|
||||
"max_title_length_min": 1,
|
||||
"max_title_length_max": 1000,
|
||||
"min_content_length_min": 0,
|
||||
"min_content_length_max": 10000,
|
||||
"max_content_length_min": 1,
|
||||
"max_content_length_max": 100000,
|
||||
"min_comment_length_min": 0,
|
||||
"min_comment_length_max": 1000,
|
||||
"max_comment_length_min": 1,
|
||||
"max_comment_length_max": 10000,
|
||||
"max_file_size_min": 1,
|
||||
"max_file_size_max": 200,
|
||||
"max_file_count_min": 1,
|
||||
"max_file_count_max": 20,
|
||||
"category_max": 50,
|
||||
"max_reply_depth_min": 1,
|
||||
"max_reply_depth_max": 10,
|
||||
"max_comment_depth_min": 0,
|
||||
"max_comment_depth_max": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -74,9 +368,303 @@ _단건 응답: `data` 객체의 필드._
|
||||
| spam_security | body | array | 아니오 | — | 스팸·보안 카테고리 값. 글·댓글·신고 작성 쿨다운 시간(초)과 조회수 캐시 TTL을 저장합니다. |
|
||||
| seo | body | array | 아니오 | — | SEO 설정 카테고리 값. 게시판 목록/개별/글 상세 페이지의 메타 제목·설명 템플릿과 각 페이지 SEO 활성화 여부를 저장합니다. |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-board/admin/settings HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"_tab": "basic_defaults",
|
||||
"notifications": [
|
||||
"예시값"
|
||||
],
|
||||
"basic_defaults": [
|
||||
"예시값"
|
||||
],
|
||||
"report_policy": [
|
||||
"예시값"
|
||||
],
|
||||
"report_permissions": [
|
||||
"예시값"
|
||||
],
|
||||
"display": [
|
||||
"예시값"
|
||||
],
|
||||
"spam_security": [
|
||||
"예시값"
|
||||
],
|
||||
"seo": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| basic_defaults | object | `{"type":"basic","per_page":20,"per_page_mobile":15,"order…` | 저장 후 갱신된 기본 설정 카테고리. 게시판 타입, 페이지당 글 수(PC/모바일), 정렬 기준/방향, 댓글·답글 사용 여부와 깊이, 제목·내용·댓글 길이 제한, 파일 업로드 허용/용량/개수/확장자, 새 글 표시 시간, 게시판 기본 권한(default_board_permissions) 등을 포함합니다. |
|
||||
| report_policy | object | `{"auto_hide_threshold":5,"auto_hide_target":"both","daily…` | 저장 후 갱신된 신고 정책 카테고리. 자동 숨김 임계치(auto_hide_threshold)와 대상(auto_hide_target: post/comment/both), 사용자별 일일 신고 한도, 신고 거부 누적 제한(횟수/기간), 관리자·작성자 신고 알림 발송 여부와 채널을 포함합니다. |
|
||||
| spam_security | object | `{"post_cooldown_seconds":0,"comment_cooldown_seconds":0,"…` | 저장 후 갱신된 스팸·보안 카테고리. 글·댓글·신고 작성 사이의 도배 방지 쿨다운 시간(초)과 조회수 캐시 TTL을 포함합니다. |
|
||||
| display | object | `{"date_display_format":"standard"}` | 저장 후 갱신된 표시 설정 카테고리. 날짜 표시 형식(date_display_format: standard 절대 표기 / relative 상대 표기)을 포함합니다. |
|
||||
| seo | object | `{"meta_boards_title":"{site_name}","meta_boards_descripti…` | 저장 후 갱신된 SEO 메타 태그 설정 카테고리. 게시판 목록/개별 게시판/글 상세 페이지의 메타 제목·설명 템플릿과 각 페이지의 SEO 생성 활성화 여부(seo_boards, seo_board, seo_post_detail)를 포함합니다. |
|
||||
| notifications | object | `{"channels":[{"id":"mail","is_active":true,"sort_order":0…` | 저장 후 갱신된 알림 채널 설정 카테고리. 각 채널(mail, database 등)의 식별자, 활성화 여부(is_active), 정렬 순서(sort_order)를 담은 channels 배열을 포함합니다. |
|
||||
| report_permissions | object | `{"view_roles":[],"manage_roles":[]}` | 저장 후 동기화된 신고 관리 권한 역할. 신고 내역을 조회할 수 있는 역할(view_roles)과 신고를 처리·관리할 수 있는 역할(manage_roles)의 식별자 배열이며, 요청에 포함된 경우 DB 권한 역할로 동기화되어 반환됩니다. |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-board::messages.settings.save_success",
|
||||
"data": {
|
||||
"basic_defaults": {
|
||||
"type": "basic",
|
||||
"per_page": 20,
|
||||
"per_page_mobile": 15,
|
||||
"order_by": "created_at",
|
||||
"order_direction": "DESC",
|
||||
"secret_mode": "{MASKED}",
|
||||
"use_comment": true,
|
||||
"use_reply": true,
|
||||
"max_reply_depth": 5,
|
||||
"max_comment_depth": 10,
|
||||
"comment_order": "ASC",
|
||||
"show_view_count": true,
|
||||
"use_report": false,
|
||||
"min_title_length": 2,
|
||||
"max_title_length": 200,
|
||||
"min_content_length": 2,
|
||||
"max_content_length": 10000,
|
||||
"min_comment_length": 2,
|
||||
"max_comment_length": 1000,
|
||||
"use_file_upload": false,
|
||||
"max_file_size": 10,
|
||||
"max_file_count": 5,
|
||||
"allowed_extensions": [
|
||||
"jpg",
|
||||
"jpeg",
|
||||
"png",
|
||||
"gif",
|
||||
"webp",
|
||||
"pdf",
|
||||
"doc",
|
||||
"docx",
|
||||
"xls",
|
||||
"xlsx",
|
||||
"ppt",
|
||||
"pptx",
|
||||
"hwp",
|
||||
"txt",
|
||||
"zip"
|
||||
],
|
||||
"notify_admin_on_post": true,
|
||||
"notify_author": true,
|
||||
"new_display_hours": 24,
|
||||
"blocked_keywords": [
|
||||
"시발",
|
||||
"씨발",
|
||||
"ㅅㅂ",
|
||||
"ㅆㅂ",
|
||||
"좆",
|
||||
"ㅈㄴ",
|
||||
"존나",
|
||||
"씹",
|
||||
"지랄",
|
||||
"ㅈㄹ",
|
||||
"개새끼",
|
||||
"새끼",
|
||||
"ㅅㄲ",
|
||||
"개자식",
|
||||
"병신",
|
||||
"ㅂㅅ",
|
||||
"미친놈",
|
||||
"미친년",
|
||||
"느금마",
|
||||
"니애미",
|
||||
"느금",
|
||||
"엠창",
|
||||
"엠뒤",
|
||||
"빡대가리",
|
||||
"개같은",
|
||||
"개년",
|
||||
"개놈",
|
||||
"개돼지",
|
||||
"개씹",
|
||||
"개쓰레기",
|
||||
"닥쳐",
|
||||
"꺼져",
|
||||
"죽어",
|
||||
"자살해",
|
||||
"뒤져",
|
||||
"저능아",
|
||||
"정신병자",
|
||||
"썅",
|
||||
"쌍놈",
|
||||
"쌍년",
|
||||
"쉬발",
|
||||
"쒸발",
|
||||
"시팔",
|
||||
"씨팔",
|
||||
"한남",
|
||||
"한녀",
|
||||
"김치녀",
|
||||
"된장녀",
|
||||
"맘충",
|
||||
"틀딱",
|
||||
"느개비",
|
||||
"장애인놈",
|
||||
"병신새끼",
|
||||
"흑형",
|
||||
"짱깨",
|
||||
"쪽바리",
|
||||
"왜놈",
|
||||
"튀기",
|
||||
"똥남아",
|
||||
"야동",
|
||||
"포르노",
|
||||
"섹스",
|
||||
"야사",
|
||||
"음란",
|
||||
"성인사이트",
|
||||
"조건만남",
|
||||
"원나잇",
|
||||
"섹파",
|
||||
"오피",
|
||||
"키스방",
|
||||
"매춘",
|
||||
"성매매",
|
||||
"몸파는"
|
||||
],
|
||||
"default_board_permissions": {
|
||||
"admin.posts.read": [
|
||||
"admin"
|
||||
],
|
||||
"admin.posts.write": [
|
||||
"admin"
|
||||
],
|
||||
"admin.posts.read-secret": [
|
||||
"admin"
|
||||
],
|
||||
"admin.comments.read": [
|
||||
"admin"
|
||||
],
|
||||
"admin.comments.write": [
|
||||
"admin"
|
||||
],
|
||||
"admin.attachments.upload": [
|
||||
"admin"
|
||||
],
|
||||
"admin.attachments.download": [
|
||||
"admin"
|
||||
],
|
||||
"admin.manage": [
|
||||
"admin"
|
||||
],
|
||||
"posts.read": [
|
||||
"admin",
|
||||
"user",
|
||||
"guest"
|
||||
],
|
||||
"posts.write": [
|
||||
"admin",
|
||||
"user"
|
||||
],
|
||||
"posts.read-secret": [
|
||||
"admin"
|
||||
],
|
||||
"comments.read": [
|
||||
"admin",
|
||||
"user",
|
||||
"guest"
|
||||
],
|
||||
"comments.write": [
|
||||
"admin",
|
||||
"user"
|
||||
],
|
||||
"attachments.upload": [
|
||||
"admin",
|
||||
"user"
|
||||
],
|
||||
"attachments.download": [
|
||||
"admin",
|
||||
"user",
|
||||
"guest"
|
||||
],
|
||||
"manager": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
},
|
||||
"report_policy": {
|
||||
"auto_hide_threshold": 5,
|
||||
"auto_hide_target": "both",
|
||||
"daily_report_limit": 10,
|
||||
"rejection_limit_count": 5,
|
||||
"rejection_limit_days": 30,
|
||||
"notify_admin_on_report": true,
|
||||
"notify_admin_on_report_scope": "per_case",
|
||||
"notify_admin_on_report_channels": [
|
||||
"mail",
|
||||
"database"
|
||||
],
|
||||
"notify_author_on_report_action": true,
|
||||
"notify_author_on_report_action_channels": [
|
||||
"mail",
|
||||
"database"
|
||||
]
|
||||
},
|
||||
"spam_security": {
|
||||
"post_cooldown_seconds": 0,
|
||||
"comment_cooldown_seconds": 0,
|
||||
"report_cooldown_seconds": 60,
|
||||
"view_count_cache_ttl": 86400
|
||||
},
|
||||
"display": {
|
||||
"date_display_format": "standard"
|
||||
},
|
||||
"seo": {
|
||||
"meta_boards_title": "{site_name}",
|
||||
"meta_boards_description": "",
|
||||
"meta_board_title": "{board_name}",
|
||||
"meta_board_description": "{board_description}",
|
||||
"meta_post_title": "{board_name} - {post_title}",
|
||||
"meta_post_description": "",
|
||||
"seo_boards": true,
|
||||
"seo_board": true,
|
||||
"seo_post_detail": true
|
||||
},
|
||||
"notifications": {
|
||||
"channels": [
|
||||
{
|
||||
"id": "mail",
|
||||
"is_active": true,
|
||||
"sort_order": 0
|
||||
},
|
||||
{
|
||||
"id": "database",
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"report_permissions": {
|
||||
"view_roles": [],
|
||||
"manage_roles": []
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -106,10 +694,37 @@ _단건 응답: `data` 객체의 필드._
|
||||
| board_ids | body | array | 아니오 | — | board 식별자 배열 |
|
||||
| override_values | body | array | 아니오 | — | 환경설정 기본값 대신 사용할 재정의 값 맵. 지정한 필드에 대해 기본값이 아닌 임의의 값으로 일괄 적용할 때 사용합니다. |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-board/admin/settings/bulk-apply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"fields": [
|
||||
"예시값"
|
||||
],
|
||||
"apply_all": true,
|
||||
"board_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"override_values": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -133,10 +748,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-board/admin/settings/clear-cache HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: side-effectful-write — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -161,10 +789,23 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| category | path | string | 예 | — | 분류 필터 (해당 분류의 항목만 조회) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/admin/settings/{category} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -29,6 +29,15 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| user | path | string | 예 | — | 대상 user의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/users/a234c2b1-cde8-437f-b28b-23323be2b98d/posts HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -49,6 +58,69 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| created_at_formatted | string | `4시간 전` | `created_at` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| content_plain | string | `API 레퍼런스 실측용 완전 샘플 게시글 본문입니다.` | 게시글 본문의 순수 텍스트입니다. HTML 모드 글은 태그를 제거한 평문으로 변환되며, 목록 미리보기용으로 사용합니다. |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "게시글 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"current_page": 1,
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"board_slug": "apidoc-sample-board",
|
||||
"board_name": "API 문서 샘플 게시판",
|
||||
"activity_type": "authored",
|
||||
"activity_count": 0,
|
||||
"title": "API 문서 샘플 게시글",
|
||||
"is_secret": "{MASKED}",
|
||||
"status": "published",
|
||||
"view_count": 44,
|
||||
"comment_count": 0,
|
||||
"created_at": "2026-07-08 10:41:34",
|
||||
"created_at_formatted": "4시간 전",
|
||||
"content_plain": "API 레퍼런스 실측용 완전 샘플 게시글 본문입니다."
|
||||
}
|
||||
],
|
||||
"first_page_url": "https://api.example.com/api/modules/sirsoft-board/users/a234c2b1-cde8-437f-b28b-23323be2b98d/posts?page=1",
|
||||
"from": 1,
|
||||
"last_page": 1,
|
||||
"last_page_url": "https://api.example.com/api/modules/sirsoft-board/users/a234c2b1-cde8-437f-b28b-23323be2b98d/posts?page=1",
|
||||
"links": [
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.previous",
|
||||
"page": null,
|
||||
"active": false
|
||||
},
|
||||
{
|
||||
"url": "https://api.example.com/api/modules/sirsoft-board/users/a234c2b1-cde8-437f-b28b-23323be2b98d/posts?page=1",
|
||||
"label": "1",
|
||||
"page": 1,
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.next",
|
||||
"page": null,
|
||||
"active": false
|
||||
}
|
||||
],
|
||||
"next_page_url": null,
|
||||
"path": "https://api.example.com/api/modules/sirsoft-board/users/a234c2b1-cde8-437f-b28b-23323be2b98d/posts",
|
||||
"per_page": 25,
|
||||
"prev_page_url": null,
|
||||
"to": 1,
|
||||
"total": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -72,6 +144,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| user | path | string | 예 | — | 대상 user의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-board/users/a234c2b1-cde8-437f-b28b-23323be2b98d/posts/stats HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -81,6 +162,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| posts_count | integer | `1` | posts 개수 (집계) |
|
||||
| comments_count | integer | `1` | comments 개수 (집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "성공적으로 처리되었습니다.",
|
||||
"data": {
|
||||
"posts_count": 1,
|
||||
"comments_count": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/addresses HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -35,6 +44,59 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| addresses | object | `{"data":[{"id":263,"user_id":"a1e0a91a-fba6-491c-a53e-728…` | 회원 본인 소유 배송지 컬렉션 (`data[]` 배송지 항목 배열 + `abilities.can_create` — UserAddressCollection 파생) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송지 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"addresses": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 배송지",
|
||||
"recipient_name": "원진수",
|
||||
"recipient_phone": "010-4988-7051",
|
||||
"country_code": "KR",
|
||||
"country_name": {
|
||||
"ko": "한국",
|
||||
"en": "South Korea"
|
||||
},
|
||||
"zipcode": "27058",
|
||||
"address": "충청남도 남양주시 테헤란로 6114",
|
||||
"address_detail": "Quidem natus iste.",
|
||||
"address_line_1": null,
|
||||
"address_line_2": null,
|
||||
"city": null,
|
||||
"state": null,
|
||||
"postal_code": null,
|
||||
"is_default": false,
|
||||
"is_domestic": true,
|
||||
"is_international": false,
|
||||
"full_address": "충청남도 남양주시 테헤란로 6114 Quidem natus iste.",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true,
|
||||
"can_set_default": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -76,9 +138,89 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.user_address.store_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/user/addresses HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "예시 이름",
|
||||
"recipient_name": "예시 이름",
|
||||
"recipient_phone": "010-1234-5678",
|
||||
"country_code": "KR",
|
||||
"zipcode": "06234",
|
||||
"province_code": "예시값",
|
||||
"city": "예시값",
|
||||
"address": "서울특별시 강남구 테헤란로 1",
|
||||
"address_detail": "서울특별시 강남구 테헤란로 1",
|
||||
"address_type_code": "R",
|
||||
"address_line_1": "서울특별시 강남구 테헤란로 1",
|
||||
"address_line_2": "서울특별시 강남구 테헤란로 1",
|
||||
"intl_city": "예시값",
|
||||
"intl_state": "예시값",
|
||||
"intl_postal_code": "06234",
|
||||
"is_default": true,
|
||||
"force_overwrite": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| address | object | `{"id":9,"user_id":"a234c2b1-cde8-437f-b28b-23323be2b98d",…` | 기본주소 (국내) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 201
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송지가 추가되었습니다.",
|
||||
"data": {
|
||||
"address": {
|
||||
"id": 9,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "실측 예시값",
|
||||
"recipient_name": "실측 예시값",
|
||||
"recipient_phone": "실측 예시값",
|
||||
"country_code": "KR",
|
||||
"country_name": {
|
||||
"ko": "한국",
|
||||
"en": "South Korea"
|
||||
},
|
||||
"zipcode": "실측 예시값",
|
||||
"address": "실측 예시값",
|
||||
"address_detail": "실측 예시값",
|
||||
"address_line_1": null,
|
||||
"address_line_2": null,
|
||||
"city": "실측 예시값",
|
||||
"state": null,
|
||||
"postal_code": null,
|
||||
"is_default": true,
|
||||
"is_domestic": true,
|
||||
"is_international": false,
|
||||
"full_address": "실측 예시값 실측 예시값",
|
||||
"created_at": "2026-07-08 15:00:36",
|
||||
"updated_at": "2026-07-08 15:00:36",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": false,
|
||||
"can_set_default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -104,9 +246,34 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/user/addresses/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송지가 삭제되었습니다.",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -132,9 +299,68 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/addresses/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| address | object | `{"id":1,"user_id":"a234c2b1-cde8-437f-b28b-23323be2b98d",…` | 기본주소 (국내) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송지 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"address": {
|
||||
"id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 배송지",
|
||||
"recipient_name": "원진수",
|
||||
"recipient_phone": "010-4988-7051",
|
||||
"country_code": "KR",
|
||||
"country_name": {
|
||||
"ko": "한국",
|
||||
"en": "South Korea"
|
||||
},
|
||||
"zipcode": "27058",
|
||||
"address": "충청남도 남양주시 테헤란로 6114",
|
||||
"address_detail": "Quidem natus iste.",
|
||||
"address_line_1": null,
|
||||
"address_line_2": null,
|
||||
"city": null,
|
||||
"state": null,
|
||||
"postal_code": null,
|
||||
"is_default": false,
|
||||
"is_domestic": true,
|
||||
"is_international": false,
|
||||
"full_address": "충청남도 남양주시 테헤란로 6114 Quidem natus iste.",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true,
|
||||
"can_set_default": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -178,9 +404,88 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.user_address.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/user/addresses/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "예시 이름",
|
||||
"recipient_name": "예시 이름",
|
||||
"recipient_phone": "010-1234-5678",
|
||||
"country_code": "KR",
|
||||
"zipcode": "06234",
|
||||
"province_code": "예시값",
|
||||
"city": "예시값",
|
||||
"address": "서울특별시 강남구 테헤란로 1",
|
||||
"address_detail": "서울특별시 강남구 테헤란로 1",
|
||||
"address_type_code": "R",
|
||||
"address_line_1": "서울특별시 강남구 테헤란로 1",
|
||||
"address_line_2": "서울특별시 강남구 테헤란로 1",
|
||||
"intl_city": "예시값",
|
||||
"intl_state": "예시값",
|
||||
"intl_postal_code": "06234",
|
||||
"is_default": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| address | object | `{"id":1,"user_id":"a234c2b1-cde8-437f-b28b-23323be2b98d",…` | 기본주소 (국내) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송지가 수정되었습니다.",
|
||||
"data": {
|
||||
"address": {
|
||||
"id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "실측 예시값",
|
||||
"recipient_name": "실측 예시값",
|
||||
"recipient_phone": "실측 예시값",
|
||||
"country_code": "KR",
|
||||
"country_name": {
|
||||
"ko": "한국",
|
||||
"en": "South Korea"
|
||||
},
|
||||
"zipcode": "실측 예시값",
|
||||
"address": "실측 예시값",
|
||||
"address_detail": "실측 예시값",
|
||||
"address_line_1": null,
|
||||
"address_line_2": null,
|
||||
"city": "실측 예시값",
|
||||
"state": null,
|
||||
"postal_code": null,
|
||||
"is_default": true,
|
||||
"is_domestic": true,
|
||||
"is_international": false,
|
||||
"full_address": "실측 예시값 실측 예시값",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:36",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": false,
|
||||
"can_set_default": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -207,9 +512,34 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/user/addresses/1/default HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "기본 배송지로 설정되었습니다.",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@
|
||||
| sort_order | query | string | 아니오 | `asc`, `desc` | 정렬 방향 (asc 오름차순 / desc 내림차순) |
|
||||
| locale | query | string | 아니오 | `ko`, `en`, `fr`, `ja` | 로케일 코드 (표시 언어/지역) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/brands?is_active=1&search=%EC%98%88%EC%8B%9C%EA%B0%92&sort=name_asc&sort_by=name&sort_order=asc&locale=ko HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -57,6 +66,53 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "브랜드 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 1,
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 브랜드",
|
||||
"en": "API Doc Sample Brand"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 브랜드",
|
||||
"slug": "apidoc-sample-brand",
|
||||
"url": "apidoc-sample-brand",
|
||||
"website": null,
|
||||
"sort_order": 0,
|
||||
"is_active": true,
|
||||
"icon": "tag",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"products_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -88,10 +144,34 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.brand.create_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/brands HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"slug": "example-key",
|
||||
"website": "예시값",
|
||||
"sort_order": 1,
|
||||
"is_active": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -117,9 +197,40 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| brand | path | string | 예 | — | 대상 brand의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/brands/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| brand_id | integer | `1` | brand 식별자 (연관 리소스 참조) |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "브랜드가 삭제되었습니다.",
|
||||
"data": {
|
||||
"brand_id": 1,
|
||||
"products_count": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -153,10 +264,34 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.brand.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/brands/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"slug": "example-key",
|
||||
"website": "예시값",
|
||||
"sort_order": 1,
|
||||
"is_active": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -183,9 +318,69 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/brands/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 브랜드","en":"API Doc Sample Brand"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 브랜드` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| slug | string | `apidoc-sample-brand` | URL 친화 식별자 (slug) |
|
||||
| url | string | `apidoc-sample-brand` | SortableMenuItem 표시용 URL (slug 값을 그대로 노출) |
|
||||
| website | null | `null` | 브랜드 웹사이트 URL |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| icon | string | `tag` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "브랜드 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 브랜드",
|
||||
"en": "API Doc Sample Brand"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 브랜드",
|
||||
"slug": "apidoc-sample-brand",
|
||||
"url": "apidoc-sample-brand",
|
||||
"website": null,
|
||||
"sort_order": 0,
|
||||
"is_active": true,
|
||||
"icon": "tag",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"products_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -212,9 +407,69 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/brands/1/toggle-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 브랜드","en":"API Doc Sample Brand"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 브랜드` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| slug | string | `apidoc-sample-brand` | URL 친화 식별자 (slug) |
|
||||
| url | string | `apidoc-sample-brand` | SortableMenuItem 표시용 URL (slug 값을 그대로 노출) |
|
||||
| website | null | `null` | 브랜드 웹사이트 URL |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| icon | string | `tag` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:16` | 최종 수정 일시 |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-ecommerce::messages.brands.status_changed",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 브랜드",
|
||||
"en": "API Doc Sample Brand"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 브랜드",
|
||||
"slug": "apidoc-sample-brand",
|
||||
"url": "apidoc-sample-brand",
|
||||
"website": null,
|
||||
"sort_order": 0,
|
||||
"is_active": false,
|
||||
"icon": "tag",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:16",
|
||||
"products_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -31,10 +31,23 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.delete_items_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/cart?ids=%EC%98%88%EC%8B%9C%EA%B0%92 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -60,6 +73,15 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.get_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/cart?selected_ids=%EC%98%88%EC%8B%9C%EA%B0%92 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -73,6 +95,81 @@ _단건 응답: `data` 객체의 필드._
|
||||
| has_unshippable_items | boolean | `false` | unshippable items 여부 |
|
||||
| selected_shipping_country | string | `KR` | 배송비 계산에 적용된 배송 국가 코드 (ResolveShippingCountry 해석 결과) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "장바구니 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"items": [],
|
||||
"item_ids": [],
|
||||
"item_count": 0,
|
||||
"calculation": {
|
||||
"items": [],
|
||||
"summary": {
|
||||
"subtotal": 0,
|
||||
"subtotal_formatted": "0원",
|
||||
"product_coupon_discount": 0,
|
||||
"product_coupon_discount_formatted": "0원",
|
||||
"code_discount": 0,
|
||||
"code_discount_formatted": "0원",
|
||||
"order_coupon_discount": 0,
|
||||
"order_coupon_discount_formatted": "0원",
|
||||
"total_coupon_discount": 0,
|
||||
"total_coupon_discount_formatted": "0원",
|
||||
"total_discount": 0,
|
||||
"discount_formatted": "0원",
|
||||
"base_shipping_total": 0,
|
||||
"extra_shipping_total": 0,
|
||||
"total_shipping": 0,
|
||||
"total_shipping_fee": 0,
|
||||
"shipping_fee_formatted": "0원",
|
||||
"shipping_discount": 0,
|
||||
"shipping_discount_formatted": "0원",
|
||||
"taxable_amount": 0,
|
||||
"tax_free_amount": 0,
|
||||
"points_earning": 0,
|
||||
"total_mileage": 0,
|
||||
"mileage_formatted": "0P",
|
||||
"points_used": 0,
|
||||
"points_used_formatted": "0원",
|
||||
"payment_amount": 0,
|
||||
"payment_amount_formatted": "0원",
|
||||
"final_amount": 0,
|
||||
"final_amount_formatted": "0원",
|
||||
"coupon_discount": 0,
|
||||
"coupon_discount_formatted": "0원",
|
||||
"order_discount": 0,
|
||||
"order_discount_formatted": "0원"
|
||||
},
|
||||
"promotions": {
|
||||
"coupon_issue_ids": [],
|
||||
"item_coupons": [],
|
||||
"discount_code": null,
|
||||
"product_promotions": {
|
||||
"coupons": [],
|
||||
"discount_codes": [],
|
||||
"events": []
|
||||
},
|
||||
"order_promotions": {
|
||||
"coupons": [],
|
||||
"discount_codes": [],
|
||||
"events": []
|
||||
}
|
||||
},
|
||||
"validation_errors": []
|
||||
},
|
||||
"has_unshippable_items": false,
|
||||
"selected_shipping_country": "KR"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -99,10 +196,31 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.bulk_add_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/cart HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"product_id": 1,
|
||||
"items": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -124,9 +242,38 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/cart/all HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| deleted_count | integer | `0` | deleted 개수 (집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "장바구니가 비워졌습니다. 0개 상품이 삭제되었습니다.",
|
||||
"data": {
|
||||
"deleted_count": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -151,6 +298,15 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.get_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/cart/count?selected_ids=%EC%98%88%EC%8B%9C%EA%B0%92 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -159,6 +315,22 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| count | integer | `1` | 장바구니에 담긴 아이템 개수 (`selected_ids` 지정 시 해당 항목만 집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "장바구니 수량을 조회했습니다.",
|
||||
"data": {
|
||||
"count": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -180,9 +352,38 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/cart/key HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| cart_key | string | `ck_QBQT80EINHHXLO8HYHntMpmUZrPujPka` | 비회원 장바구니 식별 키 (`ck_` + 32자 영숫자. 이후 요청의 `X-Cart-Key` 헤더에 실어 자신의 장바구니를 식별) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "장바구니 키가 발급되었습니다.",
|
||||
"data": {
|
||||
"cart_key": "ck_QBQT80EINHHXLO8HYHntMpmUZrPujPka"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -203,10 +404,23 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/cart/merge HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
_대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있으면 보강 -->_
|
||||
@@ -230,9 +444,109 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.get_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/cart/query HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"selected_ids": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| items | array | `[]` | 장바구니 라인 아이템 목록 (상품·옵션·수량 등 — CartItemResource 파생) |
|
||||
| item_ids | array | `[]` | item 식별자 배열 (연관 리소스 참조) |
|
||||
| item_count | integer | `0` | item 개수 (집계) |
|
||||
| calculation | object | `{"items":[],"summary":{"subtotal":0,"subtotal_formatted":…` | 선택 아이템 기준 금액 계산 결과 (상품 소계·할인·배송비 등 — OrderCalculationResult 파생) |
|
||||
| has_unshippable_items | boolean | `false` | unshippable items 여부 |
|
||||
| selected_shipping_country | string | `KR` | 배송비 계산에 적용된 배송 국가 코드 (ResolveShippingCountry 해석 결과) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "장바구니 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"items": [],
|
||||
"item_ids": [],
|
||||
"item_count": 0,
|
||||
"calculation": {
|
||||
"items": [],
|
||||
"summary": {
|
||||
"subtotal": 0,
|
||||
"subtotal_formatted": "0원",
|
||||
"product_coupon_discount": 0,
|
||||
"product_coupon_discount_formatted": "0원",
|
||||
"code_discount": 0,
|
||||
"code_discount_formatted": "0원",
|
||||
"order_coupon_discount": 0,
|
||||
"order_coupon_discount_formatted": "0원",
|
||||
"total_coupon_discount": 0,
|
||||
"total_coupon_discount_formatted": "0원",
|
||||
"total_discount": 0,
|
||||
"discount_formatted": "0원",
|
||||
"base_shipping_total": 0,
|
||||
"extra_shipping_total": 0,
|
||||
"total_shipping": 0,
|
||||
"total_shipping_fee": 0,
|
||||
"shipping_fee_formatted": "0원",
|
||||
"shipping_discount": 0,
|
||||
"shipping_discount_formatted": "0원",
|
||||
"taxable_amount": 0,
|
||||
"tax_free_amount": 0,
|
||||
"points_earning": 0,
|
||||
"total_mileage": 0,
|
||||
"mileage_formatted": "0P",
|
||||
"points_used": 0,
|
||||
"points_used_formatted": "0원",
|
||||
"payment_amount": 0,
|
||||
"payment_amount_formatted": "0원",
|
||||
"final_amount": 0,
|
||||
"final_amount_formatted": "0원",
|
||||
"coupon_discount": 0,
|
||||
"coupon_discount_formatted": "0원",
|
||||
"order_discount": 0,
|
||||
"order_discount_formatted": "0원"
|
||||
},
|
||||
"promotions": {
|
||||
"coupon_issue_ids": [],
|
||||
"item_coupons": [],
|
||||
"discount_code": null,
|
||||
"product_promotions": {
|
||||
"coupons": [],
|
||||
"discount_codes": [],
|
||||
"events": []
|
||||
},
|
||||
"order_promotions": {
|
||||
"coupons": [],
|
||||
"discount_codes": [],
|
||||
"events": []
|
||||
}
|
||||
},
|
||||
"validation_errors": []
|
||||
},
|
||||
"has_unshippable_items": false,
|
||||
"selected_shipping_country": "KR"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -257,10 +571,23 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/cart/{id} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -289,10 +616,32 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.change_option_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/cart/{id}/option HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"product_option_id": 1,
|
||||
"quantity": 1,
|
||||
"additional_option_selections": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -320,10 +669,28 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.cart.update_quantity_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/cart/{id}/quantity HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"quantity": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -34,6 +34,15 @@
|
||||
| flat | query | boolean | 아니오 | — | true 면 깊이 들여쓰기를 포함한 평면 리스트로 반환 (TagInput 등에 사용) |
|
||||
| max_depth | query | integer | 아니오 | min 1, max 10 | 조회할 최대 계층 깊이 제한 (1~10) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/categories?parent_id=%EC%98%88%EC%8B%9C%EA%B0%92&is_active=1&search=%EC%98%88%EC%8B%9C%EA%B0%92&hierarchical=1&flat=1&max_depth=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -61,6 +70,57 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| children_count | integer | `0` | children 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "카테고리 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 카테고리",
|
||||
"en": "API Doc Sample Category"
|
||||
},
|
||||
"description": null,
|
||||
"localized_name": "API 문서 샘플 카테고리",
|
||||
"parent_id": null,
|
||||
"path": "0",
|
||||
"depth": 0,
|
||||
"sort_order": 0,
|
||||
"is_active": true,
|
||||
"slug": "apidoc-sample-category",
|
||||
"url": "apidoc-sample-category",
|
||||
"icon": "folder",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"created_at": "2026-07-08 01:44:49",
|
||||
"updated_at": "2026-07-08 01:44:49",
|
||||
"images": [],
|
||||
"products_count": 0,
|
||||
"children_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -95,10 +155,39 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.category.create_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/categories HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"description": [
|
||||
"예시 내용입니다."
|
||||
],
|
||||
"parent_id": "예시값",
|
||||
"slug": "example-key",
|
||||
"is_active": true,
|
||||
"meta_title": "예시 제목",
|
||||
"meta_description": "예시 내용입니다.",
|
||||
"temp_key": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -129,10 +218,43 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.category-image.filter_upload_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/categories/images HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: multipart/form-data; boundary=----G7ExampleBoundary
|
||||
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="file"; filename="example.pdf"
|
||||
Content-Type: application/octet-stream
|
||||
|
||||
(바이너리 파일 내용)
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="temp_key"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="collection"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="alt_text"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary--
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -160,10 +282,30 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.category-image.filter_reorder_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/categories/images/reorder HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"order": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -189,10 +331,23 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/categories/images/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -221,10 +376,33 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.category.reorder_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/categories/order HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"parent_menus": [
|
||||
"예시값"
|
||||
],
|
||||
"child_menus": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -248,6 +426,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/categories/tree HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -277,6 +464,59 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| children_count | integer | `2` | children 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "카테고리 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 카테고리",
|
||||
"en": "API Doc Sample Category"
|
||||
},
|
||||
"description": null,
|
||||
"localized_name": "API 문서 샘플 카테고리",
|
||||
"parent_id": null,
|
||||
"path": "0",
|
||||
"depth": 0,
|
||||
"sort_order": 0,
|
||||
"is_active": true,
|
||||
"slug": "apidoc-sample-category",
|
||||
"url": "apidoc-sample-category",
|
||||
"icon": "folder",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"created_at": "2026-07-08 01:44:49",
|
||||
"updated_at": "2026-07-08 01:44:49",
|
||||
"parent": null,
|
||||
"children": [],
|
||||
"images": [],
|
||||
"products_count": 0,
|
||||
"children_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -307,10 +547,43 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.category-image.filter_upload_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/categories/{categoryId}/images HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: multipart/form-data; boundary=----G7ExampleBoundary
|
||||
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="file"; filename="example.pdf"
|
||||
Content-Type: application/octet-stream
|
||||
|
||||
(바이너리 파일 내용)
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="temp_key"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="collection"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="alt_text"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary--
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -337,9 +610,38 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| category | path | string | 예 | — | 분류 필터 (해당 분류의 항목만 조회) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/categories/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| category_id | integer | `1` | category 식별자 (연관 리소스 참조) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "카테고리가 삭제되었습니다.",
|
||||
"data": {
|
||||
"category_id": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -376,10 +678,39 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.category.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/categories/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"description": [
|
||||
"예시 내용입니다."
|
||||
],
|
||||
"parent_id": "예시값",
|
||||
"slug": "example-key",
|
||||
"is_active": true,
|
||||
"meta_title": "예시 제목",
|
||||
"meta_description": "예시 내용입니다.",
|
||||
"temp_key": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -406,9 +737,87 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/categories/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 카테고리","en":"API Doc Sample Category"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| description | null | `null` | 설명 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 카테고리` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| parent_id | null | `null` | parent 식별자 (연관 리소스 참조) |
|
||||
| path | string | `0` | Materialized Path: 1/5/23 |
|
||||
| depth | integer | `0` | 계층 트리에서의 깊이 (0 = 최상위, 하위로 갈수록 증가) |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| slug | string | `apidoc-sample-category` | URL 친화 식별자 (slug) |
|
||||
| url | string | `apidoc-sample-category` | SortableMenuItem 표시용 URL (slug 값을 그대로 사용) |
|
||||
| icon | string | `folder` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| meta_title | null | `null` | SEO 제목 (다국어 JSON) |
|
||||
| meta_description | null | `null` | SEO 설명 (다국어 JSON) |
|
||||
| created_at | string | `2026-07-08 01:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 01:44:49` | 최종 수정 일시 |
|
||||
| parent | null | `null` | 상위 항목 객체 (parent 관계 파생) |
|
||||
| children | array | `[]` | 하위 항목 배열 (계층 트리 — children 관계 파생) |
|
||||
| images | array | `[]` | 카테고리 이미지 배열 (images 관계 로드 시 — id/hash/download_url/alt_text 등) |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| children_count | integer | `0` | children 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "카테고리 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 카테고리",
|
||||
"en": "API Doc Sample Category"
|
||||
},
|
||||
"description": null,
|
||||
"localized_name": "API 문서 샘플 카테고리",
|
||||
"parent_id": null,
|
||||
"path": "0",
|
||||
"depth": 0,
|
||||
"sort_order": 0,
|
||||
"is_active": true,
|
||||
"slug": "apidoc-sample-category",
|
||||
"url": "apidoc-sample-category",
|
||||
"icon": "folder",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"created_at": "2026-07-08 01:44:49",
|
||||
"updated_at": "2026-07-08 01:44:49",
|
||||
"parent": null,
|
||||
"children": [],
|
||||
"images": [],
|
||||
"products_count": 0,
|
||||
"children_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -435,9 +844,83 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/categories/1/toggle-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 카테고리","en":"API Doc Sample Category"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| description | null | `null` | 설명 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 카테고리` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| parent_id | null | `null` | parent 식별자 (연관 리소스 참조) |
|
||||
| path | string | `0` | Materialized Path: 1/5/23 |
|
||||
| depth | integer | `0` | 계층 트리에서의 깊이 (0 = 최상위, 하위로 갈수록 증가) |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| slug | string | `apidoc-sample-category` | URL 친화 식별자 (slug) |
|
||||
| url | string | `apidoc-sample-category` | SortableMenuItem 표시용 URL (slug 값을 그대로 사용) |
|
||||
| icon | string | `folder` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| meta_title | null | `null` | SEO 제목 (다국어 JSON) |
|
||||
| meta_description | null | `null` | SEO 설명 (다국어 JSON) |
|
||||
| created_at | string | `2026-07-08 01:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 06:00:17` | 최종 수정 일시 |
|
||||
| images | array | `[]` | 카테고리 이미지 배열 (images 관계 로드 시 — id/hash/download_url/alt_text 등) |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| children_count | integer | `0` | children 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-ecommerce::messages.categories.status_changed",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 카테고리",
|
||||
"en": "API Doc Sample Category"
|
||||
},
|
||||
"description": null,
|
||||
"localized_name": "API 문서 샘플 카테고리",
|
||||
"parent_id": null,
|
||||
"path": "0",
|
||||
"depth": 0,
|
||||
"sort_order": 0,
|
||||
"is_active": false,
|
||||
"slug": "apidoc-sample-category",
|
||||
"url": "apidoc-sample-category",
|
||||
"icon": "folder",
|
||||
"meta_title": null,
|
||||
"meta_description": null,
|
||||
"created_at": "2026-07-08 01:44:49",
|
||||
"updated_at": "2026-07-08 06:00:17",
|
||||
"images": [],
|
||||
"products_count": 0,
|
||||
"children_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -462,6 +945,14 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/categories HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -475,6 +966,34 @@ _요청 파라미터 없음._
|
||||
| products_count | integer | `22` | products 개수 (집계) |
|
||||
| children | array | `[{"id":88,"name":{"ko":"남성","en":"Men"},"name_localized":…` | 하위 항목 배열 (계층 트리 — children 관계 파생) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "카테고리 목록을 조회했습니다.",
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 카테고리",
|
||||
"en": "API Doc Sample Category"
|
||||
},
|
||||
"name_localized": "API 문서 샘플 카테고리",
|
||||
"slug": "apidoc-sample-category",
|
||||
"depth": 0,
|
||||
"parent_id": null,
|
||||
"products_count": 0,
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
_대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있으면 보강 -->_
|
||||
@@ -496,9 +1015,68 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| slug | path | string | 예 | — | 대상 리소스의 slug (URL 친화 식별자) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/categories/apidoc-sample-category HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 카테고리","en":"API Doc Sample Category"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| name_localized | string | `API 문서 샘플 카테고리` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| description | null | `null` | 설명 (다국어 필드는 로케일별 값 객체) |
|
||||
| description_localized | null | `null` | `description` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| slug | string | `apidoc-sample-category` | URL 친화 식별자 (slug) |
|
||||
| depth | integer | `0` | 계층 트리에서의 깊이 (0 = 최상위, 하위로 갈수록 증가) |
|
||||
| parent_id | null | `null` | parent 식별자 (연관 리소스 참조) |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| breadcrumb | array | `[{"id":1,"name":"API 문서 샘플 카테고리","slug":"apidoc-sample-ca…` | 최상위부터 현재 카테고리까지의 상위 경로 배열 (각 항목에 id·현지화 name·slug — 스토어프론트 breadcrumb 표시용) |
|
||||
| images | array | `[]` | 카테고리 이미지 배열 (images 관계 로드 시 — id/hash/download_url/alt_text 등) |
|
||||
| children | array | `[]` | 하위 항목 배열 (계층 트리 — children 관계 파생) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-ecommerce::messages.categories.fetch_success",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 카테고리",
|
||||
"en": "API Doc Sample Category"
|
||||
},
|
||||
"name_localized": "API 문서 샘플 카테고리",
|
||||
"description": null,
|
||||
"description_localized": null,
|
||||
"slug": "apidoc-sample-category",
|
||||
"depth": 0,
|
||||
"parent_id": null,
|
||||
"products_count": 0,
|
||||
"breadcrumb": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "API 문서 샘플 카테고리",
|
||||
"slug": "apidoc-sample-category"
|
||||
}
|
||||
],
|
||||
"images": [],
|
||||
"children": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -29,10 +29,22 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| hash | path | string | 예 | — | 대상 리소스의 해시 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/category-image/{hash} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,10 +27,23 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/checkout HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
_대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있으면 보강 -->_
|
||||
@@ -56,10 +69,23 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
| city | query | string | 아니오 | max 100 | 도시명 (배송비 미리보기 산출용 배송 주소) |
|
||||
| address | query | string | 아니오 | max 255 | 기본 주소 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/checkout?country_code=KR&zipcode=06234®ion=%EC%98%88%EC%8B%9C%EA%B0%92&city=%EC%98%88%EC%8B%9C%EA%B0%92&address=%EC%84%9C%EC%9A%B8%ED%8A%B9%EB%B3%84%EC%8B%9C%20%EA%B0%95%EB%82%A8%EA%B5%AC%20%ED%85%8C%ED%97%A4%EB%9E%80%EB%A1%9C%201 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -88,10 +114,37 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.checkout.validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/checkout HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"item_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"direct_items": [
|
||||
"예시값"
|
||||
],
|
||||
"coupon_issue_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"use_points": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -123,10 +176,36 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.checkout.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/checkout HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"item_coupons": [
|
||||
"예시값"
|
||||
],
|
||||
"order_coupon_issue_id": 1,
|
||||
"shipping_coupon_issue_id": 1,
|
||||
"use_points": 1,
|
||||
"zipcode": "06234",
|
||||
"country_code": "KR",
|
||||
"payment_method": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -148,10 +227,23 @@ _대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/checkout/extend HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
_대표 에러 없음 (공개 조회). <!-- TODO: 도메인 특이 에러가 있으면 보강 -->_
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/claim-reasons HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -50,6 +59,79 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| updater | array | `[]` | 최종 수정자 정보 객체 (id/name — updater 관계 로드 시) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "클래임 사유 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 8,
|
||||
"id": 1,
|
||||
"type": "refund",
|
||||
"code": "order_mistake",
|
||||
"name": {
|
||||
"ko": "주문 실수",
|
||||
"en": "Order Mistake"
|
||||
},
|
||||
"localized_name": "주문 실수",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:43:32",
|
||||
"updated_at": "2026-07-08 10:43:32",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"number": 7,
|
||||
"id": 8,
|
||||
"type": "refund",
|
||||
"code": "apidoc_sample",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 사유",
|
||||
"en": "API Doc Sample Reason"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 사유",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
"... (총 8건 중 2건 표시)"
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -80,10 +162,36 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| is_active | body | boolean | 아니오 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
| sort_order | body | integer | 아니오 | min 0 | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/claim-reasons HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"type": "예시값",
|
||||
"code": "예시값",
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"fault_type": "예시값",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -107,6 +215,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/claim-reasons/active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -130,6 +247,79 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| updater | array | `[]` | 최종 수정자 정보 객체 (id/name — updater 관계 로드 시) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "클래임 사유 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 8,
|
||||
"id": 1,
|
||||
"type": "refund",
|
||||
"code": "order_mistake",
|
||||
"name": {
|
||||
"ko": "주문 실수",
|
||||
"en": "Order Mistake"
|
||||
},
|
||||
"localized_name": "주문 실수",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:43:32",
|
||||
"updated_at": "2026-07-08 10:43:32",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"number": 7,
|
||||
"id": 8,
|
||||
"type": "refund",
|
||||
"code": "apidoc_sample",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 사유",
|
||||
"en": "API Doc Sample Reason"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 사유",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
"... (총 8건 중 2건 표시)"
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -154,9 +344,38 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/claim-reasons/8 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| reason_id | integer | `8` | reason 식별자 (연관 리소스 참조) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "클래임 사유가 삭제되었습니다.",
|
||||
"data": {
|
||||
"reason_id": 8
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -183,9 +402,69 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/claim-reasons/8 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `8` | 기본 키 (내부 식별자) |
|
||||
| type | string | `refund` | 사유 유형 (refund, exchange, return 등) |
|
||||
| code | string | `apidoc_sample` | 고유 코드 (order_mistake 등) |
|
||||
| name | object | `{"ko":"API 문서 샘플 사유","en":"API Doc Sample Reason"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 사유` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| fault_type | string | `customer` | 귀책 구분 (customer, seller, carrier) |
|
||||
| fault_type_label | string | `고객 귀책` | `fault_type` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| is_user_selectable | boolean | `true` | user selectable 여부 |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "클래임 사유 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 8,
|
||||
"type": "refund",
|
||||
"code": "apidoc_sample",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 사유",
|
||||
"en": "API Doc Sample Reason"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 사유",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -219,10 +498,36 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| is_active | body | boolean | 아니오 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
| sort_order | body | integer | 아니오 | min 0 | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/claim-reasons/8 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"type": "예시값",
|
||||
"code": "예시값",
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"fault_type": "예시값",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -249,9 +554,69 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/claim-reasons/8/toggle-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `8` | 기본 키 (내부 식별자) |
|
||||
| type | string | `refund` | 사유 유형 (refund, exchange, return 등) |
|
||||
| code | string | `apidoc_sample` | 고유 코드 (order_mistake 등) |
|
||||
| name | object | `{"ko":"API 문서 샘플 사유","en":"API Doc Sample Reason"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 사유` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| fault_type | string | `customer` | 귀책 구분 (customer, seller, carrier) |
|
||||
| fault_type_label | string | `고객 귀책` | `fault_type` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| is_user_selectable | boolean | `true` | user selectable 여부 |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:18` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "클래임 사유 상태가 변경되었습니다.",
|
||||
"data": {
|
||||
"id": 8,
|
||||
"type": "refund",
|
||||
"code": "apidoc_sample",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 사유",
|
||||
"en": "API Doc Sample Reason"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 사유",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": false,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:18",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -276,6 +641,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/claim-reasons HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -299,6 +673,79 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| updater | array | `[]` | 최종 수정자 정보 객체 (id/name — updater 관계 로드 시) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "클래임 사유 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 7,
|
||||
"id": 1,
|
||||
"type": "refund",
|
||||
"code": "order_mistake",
|
||||
"name": {
|
||||
"ko": "주문 실수",
|
||||
"en": "Order Mistake"
|
||||
},
|
||||
"localized_name": "주문 실수",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:43:32",
|
||||
"updated_at": "2026-07-08 10:43:32",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"number": 6,
|
||||
"id": 8,
|
||||
"type": "refund",
|
||||
"code": "apidoc_sample",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 사유",
|
||||
"en": "API Doc Sample Reason"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 사유",
|
||||
"fault_type": "customer",
|
||||
"fault_type_label": "고객 귀책",
|
||||
"is_user_selectable": true,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
"... (총 7건 중 2건 표시)"
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -32,6 +32,15 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.coupon.user_list_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/coupons?status=available&per_page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -40,6 +49,33 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| coupons | object | `{"data":[{"id":8611,"coupon_id":156,"user_id":"a1e0a91a-f…` | 회원이 발급받은 쿠폰(발급 내역) 페이지네이션 객체 (`data[]` 발급 건 + `pagination` — CouponIssueCollection 직렬화, 쿠폰 정의가 아닌 회원별 발급 건) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "쿠폰 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"coupons": {
|
||||
"data": [],
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 0,
|
||||
"from": null,
|
||||
"to": null,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -66,6 +102,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.coupon.user_available_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/coupons/available?product_ids=%EC%98%88%EC%8B%9C%EA%B0%92 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -74,6 +119,22 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| coupons | array | `[{"id":4702,"coupon_id":106,"user_id":1,"coupon_code":nul…` | 현재 장바구니 상품에 적용 가능한 보유 쿠폰(발급 건) 배열 (상품/카테고리 범위·최소 주문금액·유효기간을 만족해 주문에 곧바로 선택 가능한 후보만) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "사용 가능한 쿠폰 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"coupons": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -100,6 +161,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.coupon.user_downloadable_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/coupons/downloadable?per_page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -146,6 +216,98 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| included_categories | array | `[]` | 적용 대상 포함 카테고리 목록 (target_scope=categories 시 이 카테고리에만 적용) |
|
||||
| excluded_categories | array | `[]` | 적용 제외 카테고리 목록 (해당 카테고리는 쿠폰 적용에서 제외) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "다운로드 가능한 쿠폰 목록을 불러왔습니다.",
|
||||
"data": {
|
||||
"current_page": 1,
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 쿠폰",
|
||||
"en": "API Doc Sample Coupon"
|
||||
},
|
||||
"description": null,
|
||||
"target_type": "order_amount",
|
||||
"discount_type": "fixed",
|
||||
"discount_value": "1000.00",
|
||||
"discount_max_amount": null,
|
||||
"min_order_amount": "0.00",
|
||||
"issue_method": "download",
|
||||
"issue_condition": "manual",
|
||||
"issue_status": "issuing",
|
||||
"total_quantity": null,
|
||||
"issued_count": 0,
|
||||
"per_user_limit": 1,
|
||||
"valid_type": "period",
|
||||
"valid_days": null,
|
||||
"valid_from": null,
|
||||
"valid_to": null,
|
||||
"issue_from": null,
|
||||
"issue_to": null,
|
||||
"is_combinable": false,
|
||||
"target_scope": "all",
|
||||
"created_by": null,
|
||||
"created_at": "2026-07-08T01:44:49.000000Z",
|
||||
"updated_at": "2026-07-08T01:44:49.000000Z",
|
||||
"deleted_at": null,
|
||||
"is_downloaded": false,
|
||||
"user_issued_count": 0,
|
||||
"coupon_id": 1,
|
||||
"localized_name": "API 문서 샘플 쿠폰",
|
||||
"target_type_short_label": "주문",
|
||||
"valid_period_formatted": "-",
|
||||
"min_order_amount_formatted": "0원",
|
||||
"remaining_quantity": null,
|
||||
"benefit_formatted": "1,000원 할인",
|
||||
"included_products": [],
|
||||
"excluded_products": [],
|
||||
"included_categories": [],
|
||||
"excluded_categories": []
|
||||
}
|
||||
],
|
||||
"first_page_url": "https://api.example.com/api/modules/sirsoft-ecommerce/user/coupons/downloadable?page=1",
|
||||
"from": 1,
|
||||
"last_page": 1,
|
||||
"last_page_url": "https://api.example.com/api/modules/sirsoft-ecommerce/user/coupons/downloadable?page=1",
|
||||
"links": [
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.previous",
|
||||
"page": null,
|
||||
"active": false
|
||||
},
|
||||
{
|
||||
"url": "https://api.example.com/api/modules/sirsoft-ecommerce/user/coupons/downloadable?page=1",
|
||||
"label": "1",
|
||||
"page": 1,
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.next",
|
||||
"page": null,
|
||||
"active": false
|
||||
}
|
||||
],
|
||||
"next_page_url": null,
|
||||
"path": "https://api.example.com/api/modules/sirsoft-ecommerce/user/coupons/downloadable",
|
||||
"per_page": 25,
|
||||
"prev_page_url": null,
|
||||
"to": 1,
|
||||
"total": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -171,10 +333,28 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| couponId | path | string | 예 | — | 대상 coupon의 식별자 |
|
||||
| coupon_id | body | integer | 예 | — | coupon 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/user/coupons/{couponId}/download HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"coupon_id": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/currency HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -35,6 +44,22 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| preferred_currency | null | `null` | 회원이 저장한 선호 결제 통화 코드 (미설정 시 `null`) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "결제 통화를 조회했습니다.",
|
||||
"data": {
|
||||
"preferred_currency": null
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -58,10 +83,28 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| currency | body | string | 예 | — | 저장할 선호 결제 통화 코드 (등록 통화: is_default 또는 exchange_rate>0 인 통화만 허용) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/user/currency HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"currency": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/dashboard/overview HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -41,6 +50,28 @@ _단건 응답: `data` 객체의 필드._
|
||||
| cancellations | integer | `0` | 오늘 취소 상태 주문상품 수량 (전체취소 기준, 부분취소 포함) |
|
||||
| returns | integer | `0` | 오늘 반품 상태 주문상품 수량 (환불 도메인 미반영으로 현재 항상 0) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "대시보드 데이터를 조회했습니다.",
|
||||
"data": {
|
||||
"pending_payment": 0,
|
||||
"payment_complete": 0,
|
||||
"preparing": 0,
|
||||
"shipping_ready": 0,
|
||||
"shipping": 0,
|
||||
"cancellations": 0,
|
||||
"returns": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -65,6 +96,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| limit | query | integer | 아니오 | min 1, max 50 | 반환할 최대 항목 수 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/dashboard/pending-inquiries?limit=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -75,6 +115,33 @@ _단건 응답: `data` 객체의 필드._
|
||||
| total | integer | `1` | 전체 개수 (집계) |
|
||||
| board_slug | null | `null` | 문의가 저장된 연동 게시판의 slug (관리자 문의 상세 링크용, 미연동 시 null) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "대시보드 데이터를 조회했습니다.",
|
||||
"data": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"inquirable_id": 59404,
|
||||
"product_name": "iste et inventore",
|
||||
"author_name": "API 문서 샘플 사용자",
|
||||
"created_at": "2026-07-08 10:44:49"
|
||||
}
|
||||
],
|
||||
"total": 1,
|
||||
"board_slug": null
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -100,6 +167,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| limit | query | integer | 아니오 | min 1, max 50 | 반환할 최대 항목 수 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/dashboard/recent-reviews?limit=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -111,6 +187,29 @@ _단건 응답: `data` 객체의 필드._
|
||||
| author_name | string | `API 문서 샘플 사용자` | 리뷰 작성자 이름 (user 관계 파생) |
|
||||
| created_at | string | `2026-07-07 14:47:31` | 생성 일시 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "대시보드 데이터를 조회했습니다.",
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"product_name": "API 문서 샘플 상품",
|
||||
"rating": 5,
|
||||
"author_name": "API 문서 샘플 사용자",
|
||||
"created_at": "2026-07-08 10:44:49"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -134,6 +233,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/dashboard/sales-graph HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -148,6 +256,64 @@ _단건 응답: `data` 객체의 필드._
|
||||
| updated_at | null | `null` | 최종 수정 일시 |
|
||||
| updated_at_display | string | `` | 집계 마지막 갱신 시각의 사용자 타임존 HH:mm 캡션 (갱신 이력 없으면 빈 문자열) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "대시보드 데이터를 조회했습니다.",
|
||||
"data": {
|
||||
"days": [
|
||||
{
|
||||
"date": "2026-07-02",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-03",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-04",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-05",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-06",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-07",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
},
|
||||
{
|
||||
"date": "2026-07-08",
|
||||
"sales_quantity": 0,
|
||||
"sales_amount": 0
|
||||
}
|
||||
],
|
||||
"total_quantity": 0,
|
||||
"total_sales": 0,
|
||||
"quantity_change": null,
|
||||
"sales_change": null,
|
||||
"updated_at": null,
|
||||
"updated_at_display": ""
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -35,6 +35,15 @@
|
||||
| per_page | query | integer | 아니오 | min 10, max 100 | 페이지당 항목 수 |
|
||||
| page | query | integer | 아니오 | min 1 | 조회할 페이지 번호 (1부터 시작) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/extra-fee-templates?search=%EC%98%88%EC%8B%9C%EA%B0%92®ion=%EC%98%88%EC%8B%9C%EA%B0%92&is_active=%2C%20&sort_by=id&sort_order=asc&per_page=1&page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -55,6 +64,62 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| updated_at | string | `2026-07-07 14:47:31` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "추가배송비 템플릿 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 1,
|
||||
"id": 1,
|
||||
"zipcode": "00000",
|
||||
"fee": 3000,
|
||||
"fee_formatted": "3,000원",
|
||||
"region": null,
|
||||
"description": null,
|
||||
"is_active": true,
|
||||
"created_by": null,
|
||||
"updated_by": null,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
},
|
||||
"statistics": {
|
||||
"total": 1,
|
||||
"active": 1,
|
||||
"inactive": 0,
|
||||
"by_region": []
|
||||
},
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -84,10 +149,32 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| description | body | string | 아니오 | max 1000 | 설명 |
|
||||
| is_active | body | boolean | 아니오 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/extra-fee-templates HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"zipcode": "06234",
|
||||
"fee": 1,
|
||||
"region": "예시값",
|
||||
"description": "예시 내용입니다.",
|
||||
"is_active": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -111,6 +198,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/active-settings HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -119,6 +215,26 @@ _요청 파라미터 없음._
|
||||
| fee | integer | `3000` | 해당 우편번호의 추가 배송비 (float 변환값) |
|
||||
| region | string | `` | 지역명 (없으면 빈 문자열) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "활성 추가배송비 템플릿 설정을 조회했습니다.",
|
||||
"data": [
|
||||
{
|
||||
"zipcode": "00000",
|
||||
"fee": 3000,
|
||||
"region": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -143,10 +259,23 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| ids | query | array | 예 | min 1 | 대상 리소스 식별자 배열 (대량 작업 대상) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/bulk?ids=%EC%98%88%EC%8B%9C%EA%B0%92 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -172,10 +301,30 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| items | body | array | 예 | min 1, max 1000 | 처리 대상 항목 배열 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/bulk HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"items": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -202,10 +351,31 @@ _요청 파라미터 없음._
|
||||
| ids | body | array | 예 | min 1 | 대상 리소스 식별자 배열 (대량 작업 대상) |
|
||||
| is_active | body | boolean | 예 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/bulk-toggle-active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"is_active": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -231,9 +401,34 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "추가배송비 템플릿이 삭제되었습니다.",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -260,9 +455,64 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| zipcode | string | `00000` | 우편번호 (단일 또는 범위) |
|
||||
| fee | integer | `3000` | 추가 배송비 |
|
||||
| fee_formatted | string | `3,000원` | `fee` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| region | null | `null` | 지역명 (예: 제주도, 울릉도) |
|
||||
| description | null | `null` | 설명 (다국어 필드는 로케일별 값 객체) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| created_by | null | `null` | 생성자 ID |
|
||||
| updated_by | null | `null` | 최종 수정한 사용자 정보 (uuid/name — updated_by 관계 파생, 없으면 null) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "추가배송비 템플릿 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"zipcode": "00000",
|
||||
"fee": 3000,
|
||||
"fee_formatted": "3,000원",
|
||||
"region": null,
|
||||
"description": null,
|
||||
"is_active": true,
|
||||
"created_by": null,
|
||||
"updated_by": null,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -294,10 +544,32 @@ _요청 파라미터 없음._
|
||||
| description | body | string | 아니오 | max 1000 | 설명 |
|
||||
| is_active | body | boolean | 아니오 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"zipcode": "06234",
|
||||
"fee": 1,
|
||||
"region": "예시값",
|
||||
"description": "예시 내용입니다.",
|
||||
"is_active": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -324,9 +596,64 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/extra-fee-templates/1/toggle-active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| zipcode | string | `00000` | 우편번호 (단일 또는 범위) |
|
||||
| fee | integer | `3000` | 추가 배송비 |
|
||||
| fee_formatted | string | `3,000원` | `fee` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| region | null | `null` | 지역명 (예: 제주도, 울릉도) |
|
||||
| description | null | `null` | 설명 (다국어 필드는 로케일별 값 객체) |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| created_by | null | `null` | 생성자 ID |
|
||||
| updated_by | string | `a234c2b1-cde8-437f-b28b-23323be2b98d` | 최종 수정한 사용자 정보 (uuid/name — updated_by 관계 파생, 없으면 null) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:20` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "추가배송비 템플릿 사용여부가 변경되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"zipcode": "00000",
|
||||
"fee": 3000,
|
||||
"fee_formatted": "3,000원",
|
||||
"region": null,
|
||||
"description": null,
|
||||
"is_active": false,
|
||||
"created_by": null,
|
||||
"updated_by": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:20",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -31,10 +31,29 @@
|
||||
| orderer_phone | body | string | 예 | max 20 | 주문자 전화번호 (본인 확인 키 ②) |
|
||||
| guest_lookup_password | body | string | 예 | max 255 | 비회원 주문 조회 비밀번호 (본인 확인 키 ③) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/guest/orders/verify HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"order_number": "예시값",
|
||||
"orderer_phone": "010-1234-5678",
|
||||
"guest_lookup_password": "Password123!"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-404 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -62,10 +81,32 @@
|
||||
| items | body | array | 아니오 | min 1 | 처리 대상 항목 배열 (전달 시 부분취소, 미전달 시 전체취소) |
|
||||
| refund_priority | body | string | 아니오 | `pg_first`, `points_first` | 환불 배분 우선순위 (PG 우선 / 포인트 우선, 미전달 시 pg_first) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/guest/orders/{orderNumber}/cancel HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"reason": "예시값",
|
||||
"reason_detail": "예시값",
|
||||
"items": [
|
||||
"예시값"
|
||||
],
|
||||
"refund_priority": "pg_first"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -92,10 +133,30 @@
|
||||
| items | body | array | 예 | min 1 | 처리 대상 항목 배열 |
|
||||
| refund_priority | body | string | 아니오 | `pg_first`, `points_first` | 환불 배분 우선순위 (PG 우선 / 포인트 우선, 미전달 시 pg_first) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/guest/orders/{orderNumber}/estimate-refund HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"items": [
|
||||
"예시값"
|
||||
],
|
||||
"refund_priority": "pg_first"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -121,10 +182,22 @@
|
||||
| orderNumber | path | string | 예 | — | 대상 order number의 식별자 |
|
||||
| optionId | path | string | 예 | — | 대상 option의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/guest/orders/{orderNumber}/options/{optionId}/confirm HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -161,10 +234,39 @@
|
||||
| intl_postal_code | body | string | 아니오 | max 20 | 우편번호 (국제 주소) |
|
||||
| delivery_memo | body | string | 아니오 | max 255 | 배송 메모 (배송 시 요청사항) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/guest/orders/{orderNumber}/shipping-address HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"recipient_name": "예시 이름",
|
||||
"recipient_phone": "010-1234-5678",
|
||||
"recipient_tel": "예시값",
|
||||
"country_code": "KR",
|
||||
"zipcode": "06234",
|
||||
"address": "서울특별시 강남구 테헤란로 1",
|
||||
"address_detail": "서울특별시 강남구 테헤란로 1",
|
||||
"address_line_1": "서울특별시 강남구 테헤란로 1",
|
||||
"address_line_2": "서울특별시 강남구 테헤란로 1",
|
||||
"intl_city": "예시값",
|
||||
"intl_state": "예시값",
|
||||
"intl_postal_code": "06234",
|
||||
"delivery_memo": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -29,10 +29,23 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/inquiries/{inquiryId} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -58,10 +71,23 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/inquiries/{inquiryId}/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -88,10 +114,28 @@
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
| content | body | string | 예 | min 1, max 5000 | 본문 내용 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/inquiries/{inquiryId}/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"content": "예시 내용입니다."
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -119,10 +163,28 @@
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
| content | body | string | 예 | min 1, max 5000 | 본문 내용 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/inquiries/{inquiryId}/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"content": "예시 내용입니다."
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -147,6 +209,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/inquiries HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -156,6 +227,69 @@ _단건 응답: `data` 객체의 필드._
|
||||
| items | array | `[]` | 내 문의 항목 배열 (각 항목: id, product 요약, product_name, is_answered, 게시판 연동 시 title/category/content/is_secret/reply/attachments) |
|
||||
| meta | object | `{"current_page":1,"per_page":25,"total":0,"last_page":1,"…` | 페이지네이션 메타 (current_page/per_page/total/last_page/from/to, 문의 게시판 연동 여부 inquiry_available, abilities 답변·삭제 권한, board_settings) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "문의 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"product": {
|
||||
"id": 1,
|
||||
"name": "API 문서 샘플 상품",
|
||||
"thumbnail_url": null,
|
||||
"url": "/shop/products/1"
|
||||
},
|
||||
"product_name": "iste et inventore",
|
||||
"is_answered": false,
|
||||
"answered_at": null,
|
||||
"created_at": "2026-07-08T01:44:49+00:00",
|
||||
"updated_at": "2026-07-08T01:44:49+00:00",
|
||||
"title": null,
|
||||
"category": null,
|
||||
"content": null,
|
||||
"is_secret": "{MASKED}",
|
||||
"reply": null,
|
||||
"attachments": []
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"current_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"last_page": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"inquiry_available": false,
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
},
|
||||
"board_settings": {
|
||||
"secret_mode": "{MASKED}",
|
||||
"categories": [],
|
||||
"use_file_upload": false,
|
||||
"max_file_count": 5,
|
||||
"max_file_size": 10485760,
|
||||
"allowed_extensions": [],
|
||||
"min_title_length": 2,
|
||||
"max_title_length": 200,
|
||||
"min_content_length": 10,
|
||||
"max_content_length": 10000
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -179,10 +313,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/user/inquiries/{inquiryId} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -213,10 +360,31 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.inquiry.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/user/inquiries/{inquiryId} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"title": "예시 제목",
|
||||
"category": "예시값",
|
||||
"content": "예시 내용입니다.",
|
||||
"is_secret": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -242,10 +410,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/user/inquiries/{inquiryId}/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -271,10 +452,28 @@ _단건 응답: `data` 객체의 필드._
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
| content | body | string | 예 | min 1, max 5000 | 본문 내용 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/user/inquiries/{inquiryId}/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"content": "예시 내용입니다."
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -301,10 +500,28 @@ _단건 응답: `data` 객체의 필드._
|
||||
| inquiryId | path | string | 예 | — | 대상 inquiry의 식별자 |
|
||||
| content | body | string | 예 | min 1, max 5000 | 본문 내용 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/user/inquiries/{inquiryId}/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"content": "예시 내용입니다."
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -37,6 +37,15 @@
|
||||
| start_date | query | date | 아니오 | — | 조회 기간 시작일 (이 날짜 이후 데이터) |
|
||||
| end_date | query | date | 아니오 | — | 조회 기간 종료일 (이 날짜 이전 데이터) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/mileage-transactions?page=1&per_page=1&sort=created_at_desc&search_field=member&search_keyword=%EC%98%88%EC%8B%9C%EA%B0%92&type=earn¤cy=%EC%98%88%EC%8B%9C%EA%B0%92&start_date=2026-01-01&end_date=2026-01-01 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -83,6 +92,82 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| expiry_state | string | `active` | 적립건 소멸 상태 (active=미소멸, partial_expired=일부 소멸, fully_expired=전액 소멸 — 적립계만 의미) |
|
||||
| abilities | object | `{"can_manage":true,"can_edit":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "마일리지 내역을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 1,
|
||||
"id": 1,
|
||||
"user_id": 6,
|
||||
"currency": "KRW",
|
||||
"type": "admin_earn",
|
||||
"type_label": "관리자 지급",
|
||||
"admin_badge_group": "amber",
|
||||
"user_display_category": "adjust",
|
||||
"amount": 1000,
|
||||
"amount_formatted": "1,000원",
|
||||
"remaining_amount": 0,
|
||||
"remaining_amount_formatted": "0원",
|
||||
"balance_after": 1000,
|
||||
"order_id": null,
|
||||
"order_option_id": null,
|
||||
"order_cancel_id": null,
|
||||
"source_transaction_id": null,
|
||||
"granted_by": null,
|
||||
"granted_by_name": null,
|
||||
"granted_by_uuid": null,
|
||||
"user_name": "API 문서 샘플 사용자",
|
||||
"user_uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"order_number": null,
|
||||
"description": null,
|
||||
"memo": null,
|
||||
"expires_at": null,
|
||||
"expires_at_formatted": null,
|
||||
"expires_at_date": null,
|
||||
"expired_at": null,
|
||||
"expired_at_formatted": null,
|
||||
"created_at": "2026-07-08T01:44:49+00:00",
|
||||
"created_at_formatted": "2026-07-08 10:44:49",
|
||||
"created_at_date": "2026-07-08",
|
||||
"is_earning": true,
|
||||
"can_edit_expiry": false,
|
||||
"expired_amount": 0,
|
||||
"expired_amount_formatted": "0원",
|
||||
"expiry_state": "active",
|
||||
"abilities": {
|
||||
"can_manage": true,
|
||||
"can_edit": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_manage": true
|
||||
},
|
||||
"currencies": [
|
||||
"KRW"
|
||||
],
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -115,10 +200,35 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| expires_at | body | date | 아니오 | — | 만료일 직접 지정 (지급 시 `use_default_expiry`=false 인 경우 적용) |
|
||||
| use_default_expiry | body | boolean | 아니오 | — | 지급 시 정책 기본 만료일 적용 여부 (기본 true, false 면 `expires_at` 사용) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/mileage-transactions HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"user_id": "9f8b2c1a-4d3e-4a2b-8c1d-0e1f2a3b4c5d",
|
||||
"action": "earn",
|
||||
"amount": 1,
|
||||
"currency": "예시값",
|
||||
"memo": "예시값",
|
||||
"description": "예시 내용입니다.",
|
||||
"expires_at": "2026-01-01",
|
||||
"use_default_expiry": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -146,10 +256,32 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| lot_ids | body | array | 예 | min 1 | lot 식별자 배열 |
|
||||
| days | body | integer | 예 | min 1, max 3650 | 각 lot 만료일을 연장할 일수 (최대 3650일) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/mileage-transactions/extend-expiry HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"user_id": "9f8b2c1a-4d3e-4a2b-8c1d-0e1f2a3b4c5d",
|
||||
"lot_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"days": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -177,10 +309,29 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| memo | body | string | 아니오 | max 1000 | 관리자 메모 보정값 (요청에 포함된 경우만 갱신, 빈 값으로 비우기 허용) |
|
||||
| expires_at | body | date | 아니오 | — | expires 일시 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/mileage-transactions/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"memo": "예시값",
|
||||
"expires_at": "2026-01-01"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -207,9 +358,40 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/mileage-transactions/1/linked HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "연결 거래를 조회했습니다.",
|
||||
"data": {
|
||||
"data": [],
|
||||
"abilities": {
|
||||
"can_manage": true
|
||||
},
|
||||
"currencies": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/mileage HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -35,6 +44,31 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| mileage | object | `{"enabled":false,"available":12910,"pending":14000,"expir…` | 마일리지 잔액 요약 객체 (enabled 기능 활성화 여부, available 사용 가능, pending 적립 대기, expiring_soon/expiring_date 소멸 예정, total_earned/total_used 누적 적립·사용, by_currency 통화별 잔액) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "마일리지 잔액을 조회했습니다.",
|
||||
"data": {
|
||||
"mileage": {
|
||||
"enabled": false,
|
||||
"available": 0,
|
||||
"pending": 0,
|
||||
"expiring_soon": 0,
|
||||
"expiring_date": null,
|
||||
"total_earned": 0,
|
||||
"total_used": 0,
|
||||
"by_currency": []
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -60,6 +94,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| currency | query | string | 아니오 | max 10 | 통화 코드 필터 (해당 통화의 마일리지 거래만 조회) |
|
||||
| per_page | query | integer | 아니오 | min 1, max 100 | 페이지당 항목 수 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/mileage/history?category=earn¤cy=%EC%98%88%EC%8B%9C%EA%B0%92&per_page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -68,6 +111,82 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| transactions | object | `{"data":[{"number":6,"id":527,"user_id":1,"currency":"KRW…` | 마일리지 거래 내역 페이지네이션 객체 (`data` 거래 항목 배열 + 페이지 메타, `MileageTransactionCollection` 으로 직렬화) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "마일리지 내역을 조회했습니다.",
|
||||
"data": {
|
||||
"transactions": {
|
||||
"data": [
|
||||
{
|
||||
"number": 1,
|
||||
"id": 1,
|
||||
"user_id": 6,
|
||||
"currency": "KRW",
|
||||
"type": "admin_earn",
|
||||
"type_label": "관리자 지급",
|
||||
"admin_badge_group": "amber",
|
||||
"user_display_category": "adjust",
|
||||
"amount": 1000,
|
||||
"amount_formatted": "1,000원",
|
||||
"remaining_amount": 0,
|
||||
"remaining_amount_formatted": "0원",
|
||||
"balance_after": 1000,
|
||||
"order_id": null,
|
||||
"order_option_id": null,
|
||||
"order_cancel_id": null,
|
||||
"source_transaction_id": null,
|
||||
"granted_by": null,
|
||||
"granted_by_name": [],
|
||||
"granted_by_uuid": [],
|
||||
"user_name": [],
|
||||
"user_uuid": [],
|
||||
"order_number": [],
|
||||
"description": null,
|
||||
"memo": null,
|
||||
"expires_at": null,
|
||||
"expires_at_formatted": null,
|
||||
"expires_at_date": null,
|
||||
"expired_at": null,
|
||||
"expired_at_formatted": null,
|
||||
"created_at": "2026-07-08T01:44:49+00:00",
|
||||
"created_at_formatted": "2026-07-08 10:44:49",
|
||||
"created_at_date": "2026-07-08",
|
||||
"is_earning": true,
|
||||
"can_edit_expiry": false,
|
||||
"expired_amount": 0,
|
||||
"expired_amount_formatted": "0원",
|
||||
"expiry_state": "active",
|
||||
"abilities": {
|
||||
"can_manage": true,
|
||||
"can_edit": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_manage": true
|
||||
},
|
||||
"currencies": [],
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -94,10 +213,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.mileage.max_usable_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/mileage/max-usable?order_amount=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -35,10 +35,36 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.product_option.bulk_price_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/options/bulk-price HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"product_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"option_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"method": "increase",
|
||||
"value": 1,
|
||||
"unit": "won"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -69,10 +95,35 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.product_option.bulk_stock_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/options/bulk-stock HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"product_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"option_ids": [
|
||||
"예시값"
|
||||
],
|
||||
"method": "increase",
|
||||
"value": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -102,10 +153,36 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.option.bulk_update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/options/bulk-update HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"bulk_changes": [
|
||||
"예시값"
|
||||
],
|
||||
"items": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -29,10 +29,22 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| provider | path | string | 예 | — | 대상 provider의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/payments/client-config/{provider} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -31,12 +31,35 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.search_preset.list_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/presets?target_screen=products HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-ecommerce::messages.presets.fetch_success",
|
||||
"data": []
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -65,10 +88,32 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.preset.store_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/presets HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"target_screen": "예시값",
|
||||
"name": "예시 이름",
|
||||
"conditions": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -93,10 +138,23 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| preset | path | string | 예 | — | 대상 preset의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/presets/{preset} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -126,10 +184,32 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.preset.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/presets/{preset} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": "예시 이름",
|
||||
"conditions": [
|
||||
"예시값"
|
||||
],
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/product-common-infos HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -49,6 +58,61 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| language_count | integer | `2` | language 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "공통정보 목록을 불러왔습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 공통정보",
|
||||
"en": "API Doc Sample Common Info"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 공통정보",
|
||||
"content": [],
|
||||
"localized_content": "",
|
||||
"content_mode": "text",
|
||||
"is_default": false,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"icon": "info-circle",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"products_count": 0,
|
||||
"language_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
},
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -80,10 +144,37 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.product-common-info.create_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/product-common-infos HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"content": [
|
||||
"예시 내용입니다."
|
||||
],
|
||||
"content_mode": "text",
|
||||
"is_default": true,
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -109,9 +200,40 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/product-common-infos/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| common_info_id | integer | `1` | common info 식별자 (연관 리소스 참조) |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "공통정보가 삭제되었습니다.",
|
||||
"data": {
|
||||
"common_info_id": 1,
|
||||
"products_count": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -138,9 +260,73 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/product-common-infos/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 공통정보","en":"API Doc Sample Common Info"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 공통정보` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| content | array | `[]` | 본문 내용 |
|
||||
| localized_content | string | `` | `content` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| content_mode | string | `text` | 내용 모드 (text: 텍스트, html: HTML) |
|
||||
| is_default | boolean | `false` | default 여부 |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| icon | string | `info-circle` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| language_count | integer | `0` | language 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "공통정보 목록을 불러왔습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 공통정보",
|
||||
"en": "API Doc Sample Common Info"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 공통정보",
|
||||
"content": [],
|
||||
"localized_content": "",
|
||||
"content_mode": "text",
|
||||
"is_default": false,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"icon": "info-circle",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"products_count": 0,
|
||||
"language_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -175,10 +361,37 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.product-common-info.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/product-common-infos/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"content": [
|
||||
"예시 내용입니다."
|
||||
],
|
||||
"content_mode": "text",
|
||||
"is_default": true,
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -205,9 +418,73 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/product-common-infos/1/toggle-active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 공통정보","en":"API Doc Sample Common Info"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 공통정보` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| content | array | `[]` | 본문 내용 |
|
||||
| localized_content | string | `` | `content` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| content_mode | string | `text` | 내용 모드 (text: 텍스트, html: HTML) |
|
||||
| is_default | boolean | `false` | default 여부 |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| icon | string | `info-circle` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:26` | 최종 수정 일시 |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
| language_count | integer | `0` | language 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "공통정보가 비활성화되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 공통정보",
|
||||
"en": "API Doc Sample Common Info"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 공통정보",
|
||||
"content": [],
|
||||
"localized_content": "",
|
||||
"content_mode": "text",
|
||||
"is_default": false,
|
||||
"is_active": false,
|
||||
"sort_order": 0,
|
||||
"icon": "info-circle",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:26",
|
||||
"products_count": 0,
|
||||
"language_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -29,10 +29,22 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| hash | path | string | 예 | — | 대상 리소스의 해시 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/product-image/{hash} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -33,6 +33,15 @@
|
||||
| sort | query | string | 아니오 | `name_asc`, `name_desc`, `created_asc`, `created_desc` | 정렬 기준 (필드명, `-` 접두 시 내림차순) |
|
||||
| locale | query | string | 아니오 | `ko`, `en`, `fr`, `ja` | 로케일 코드 (표시 언어/지역) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/product-labels?is_active=1&active_only=1&search=%EC%98%88%EC%8B%9C%EA%B0%92&sort=name_asc&locale=ko HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -49,6 +58,46 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| assignments_count | integer | `0` | assignments 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "라벨 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 라벨",
|
||||
"en": "API Doc Sample Label"
|
||||
},
|
||||
"color": null,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"assignments_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -77,10 +126,33 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| is_active | body | boolean | 아니오 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
| sort_order | body | integer | 아니오 | min 0 | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/product-labels HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"color": "#4F46E5",
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -106,9 +178,40 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/product-labels/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| label_id | integer | `1` | label 식별자 (연관 리소스 참조) |
|
||||
| products_count | integer | `0` | products 개수 (집계) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "라벨이 삭제되었습니다.",
|
||||
"data": {
|
||||
"label_id": 1,
|
||||
"products_count": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -135,9 +238,61 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/product-labels/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 라벨","en":"API Doc Sample Label"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| color | null | `null` | 색상 코드 (예: #FF5733) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| assignments_count | integer | `0` | assignments 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "라벨 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 라벨",
|
||||
"en": "API Doc Sample Label"
|
||||
},
|
||||
"color": null,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"assignments_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -168,10 +323,33 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| is_active | body | boolean | 아니오 | — | 활성 여부 (true 활성 / false 비활성) |
|
||||
| sort_order | body | integer | 아니오 | min 0 | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/product-labels/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"color": "#4F46E5",
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -198,9 +376,61 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/product-labels/1/toggle-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 라벨","en":"API Doc Sample Label"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| color | null | `null` | 색상 코드 (예: #FF5733) |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:27` | 최종 수정 일시 |
|
||||
| assignments_count | integer | `0` | assignments 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "라벨 상태가 변경되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 라벨",
|
||||
"en": "API Doc Sample Label"
|
||||
},
|
||||
"color": null,
|
||||
"is_active": false,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:27",
|
||||
"assignments_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -32,6 +32,15 @@
|
||||
| per_page | query | string | 아니오 | — | 페이지당 항목 수 |
|
||||
| page | query | integer | 아니오 | min 1 | 조회할 페이지 번호 (1부터 시작) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/product-notice-templates?search=%EC%98%88%EC%8B%9C%EA%B0%92&active_only=1&per_page=%EC%98%88%EC%8B%9C%EA%B0%92&page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -51,6 +60,63 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| updated_at | string | `2026-07-07 14:47:31` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "상품정보제공고시 목록을 불러왔습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 고시템플릿",
|
||||
"en": "API Doc Sample Notice Template"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 고시템플릿",
|
||||
"category": null,
|
||||
"fields": [
|
||||
{
|
||||
"label": "품명",
|
||||
"value": "샘플"
|
||||
}
|
||||
],
|
||||
"fields_count": 1,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"icon": "file-alt",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
},
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -82,10 +148,36 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.product-notice-template.create_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/product-notice-templates HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"category": "예시값",
|
||||
"fields": [
|
||||
"예시값"
|
||||
],
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -111,9 +203,38 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/product-notice-templates/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| template_id | integer | `1` | template 식별자 (연관 리소스 참조) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "상품정보제공고시가 삭제되었습니다.",
|
||||
"data": {
|
||||
"template_id": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -140,9 +261,72 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/product-notice-templates/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 고시템플릿","en":"API Doc Sample Notice Templ…` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 고시템플릿` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| category | null | `null` | 품목 카테고리 |
|
||||
| fields | array | `[{"label":"품명","value":"샘플"}]` | 필드 정의 JSON |
|
||||
| fields_count | integer | `1` | fields 개수 (집계) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| icon | string | `file-alt` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "상품정보제공고시 목록을 불러왔습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 고시템플릿",
|
||||
"en": "API Doc Sample Notice Template"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 고시템플릿",
|
||||
"category": null,
|
||||
"fields": [
|
||||
{
|
||||
"label": "품명",
|
||||
"value": "샘플"
|
||||
}
|
||||
],
|
||||
"fields_count": 1,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"icon": "file-alt",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -176,10 +360,36 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.product-notice-template.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/product-notice-templates/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"category": "예시값",
|
||||
"fields": [
|
||||
"예시값"
|
||||
],
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -206,9 +416,72 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/product-notice-templates/1/copy HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `2` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 고시템플릿 (복사)","en":"API Doc Sample Notice …` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 고시템플릿 (복사)` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| category | null | `null` | 품목 카테고리 |
|
||||
| fields | array | `[{"label":"품명","value":"샘플"}]` | 필드 정의 JSON |
|
||||
| fields_count | integer | `1` | fields 개수 (집계) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| sort_order | integer | `1` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| icon | string | `file-alt` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 15:00:27` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:27` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 201
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "상품정보제공고시가 복사되었습니다.",
|
||||
"data": {
|
||||
"id": 2,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 고시템플릿 (복사)",
|
||||
"en": "API Doc Sample Notice Template (Copy)"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 고시템플릿 (복사)",
|
||||
"category": null,
|
||||
"fields": [
|
||||
{
|
||||
"label": "품명",
|
||||
"value": "샘플"
|
||||
}
|
||||
],
|
||||
"fields_count": 1,
|
||||
"is_active": true,
|
||||
"sort_order": 1,
|
||||
"icon": "file-alt",
|
||||
"created_at": "2026-07-08 15:00:27",
|
||||
"updated_at": "2026-07-08 15:00:27",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -235,9 +508,72 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/product-notice-templates/1/toggle-active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 고시템플릿","en":"API Doc Sample Notice Templ…` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 고시템플릿` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| category | null | `null` | 품목 카테고리 |
|
||||
| fields | array | `[{"label":"품명","value":"샘플"}]` | 필드 정의 JSON |
|
||||
| fields_count | integer | `1` | fields 개수 (집계) |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| icon | string | `file-alt` | 아이콘 식별자 (아이콘 클래스/이름) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:27` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "상품정보제공고시가 비활성화되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 고시템플릿",
|
||||
"en": "API Doc Sample Notice Template"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 고시템플릿",
|
||||
"category": null,
|
||||
"fields": [
|
||||
{
|
||||
"label": "품명",
|
||||
"value": "샘플"
|
||||
}
|
||||
],
|
||||
"fields_count": 1,
|
||||
"is_active": false,
|
||||
"sort_order": 0,
|
||||
"icon": "file-alt",
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:27",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -49,6 +49,15 @@
|
||||
| issue_end_date | query | date | 아니오 | — | 발급기간 범위 종료 (시작일 이후) |
|
||||
| created_by | query | uuid | 아니오 | — | 등록자(생성한 관리자) UUID 필터 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/promotion-coupons?page=1&per_page=1&sort_by=created_at&sort_order=asc&search_field=all&search_keyword=%EC%98%88%EC%8B%9C%EA%B0%92&target_type=all&discount_type=all&issue_status=all&issue_method=all&issue_condition=all&min_benefit_amount=1&max_benefit_amount=1&min_order_amount=1&created_start_date=2026-01-01&created_end_date=2026-01-01&valid_start_date=2026-01-01&valid_end_date=2026-01-01&issue_start_date=2026-01-01&issue_end_date=2026-01-01&created_by=9f8b2c1a-4d3e-4a2b-8c1d-0e1f2a3b4c5d HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -106,6 +115,131 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| issues_count | integer | `0` | issues 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "쿠폰 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 쿠폰",
|
||||
"en": "API Doc Sample Coupon"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 쿠폰",
|
||||
"description": null,
|
||||
"localized_description": null,
|
||||
"target_type": "order_amount",
|
||||
"target_type_label": "주문금액",
|
||||
"target_type_badge_color": "blue",
|
||||
"discount_type": "fixed",
|
||||
"discount_type_label": "정액할인",
|
||||
"discount_value": 1000,
|
||||
"discount_max_amount": null,
|
||||
"min_order_amount": 0,
|
||||
"benefit_formatted": "1,000원 할인",
|
||||
"multi_currency_discount_value": {
|
||||
"KRW": {
|
||||
"price": 1000,
|
||||
"formatted": "1,000원",
|
||||
"is_default": true,
|
||||
"editable": true
|
||||
},
|
||||
"USD": {
|
||||
"price": 0.85,
|
||||
"formatted": "$0.85",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 0.85
|
||||
},
|
||||
"JPY": {
|
||||
"price": 115,
|
||||
"formatted": "¥115",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 115
|
||||
},
|
||||
"CNY": {
|
||||
"price": 5.8,
|
||||
"formatted": "元5.80",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 5.8
|
||||
},
|
||||
"EUR": {
|
||||
"price": 0.78,
|
||||
"formatted": "€0.78",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 0.78
|
||||
}
|
||||
},
|
||||
"multi_currency_min_order_amount": null,
|
||||
"multi_currency_discount_max_amount": null,
|
||||
"issue_method": "download",
|
||||
"issue_method_label": "다운로드",
|
||||
"issue_method_badge_color": "teal",
|
||||
"issue_condition": "manual",
|
||||
"issue_condition_label": "수동발급",
|
||||
"issue_condition_badge_color": "orange",
|
||||
"issue_status": "issuing",
|
||||
"issue_status_label": "발급중",
|
||||
"issue_status_badge_color": "blue",
|
||||
"total_quantity": null,
|
||||
"issued_count": 0,
|
||||
"per_user_limit": 1,
|
||||
"issue_count_formatted": "0/무제한",
|
||||
"valid_type": "period",
|
||||
"valid_days": null,
|
||||
"valid_from": null,
|
||||
"valid_to": null,
|
||||
"valid_period_formatted": "-",
|
||||
"issue_from": null,
|
||||
"issue_to": null,
|
||||
"issue_period_formatted": "상시발급",
|
||||
"is_combinable": false,
|
||||
"target_scope": "all",
|
||||
"target_scope_label": "전체상품",
|
||||
"is_issuable": true,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"created_by": null,
|
||||
"created_by_name": "-",
|
||||
"created_by_email": null,
|
||||
"creator": null,
|
||||
"issues_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
},
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -154,10 +288,57 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.coupon.create_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/promotion-coupons HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"description": [
|
||||
"예시 내용입니다."
|
||||
],
|
||||
"target_type": "product_amount",
|
||||
"discount_type": "fixed",
|
||||
"discount_value": 1,
|
||||
"discount_max_amount": 1,
|
||||
"min_order_amount": 1,
|
||||
"issue_method": "direct",
|
||||
"issue_condition": "manual",
|
||||
"issue_status": "issuing",
|
||||
"total_quantity": 1,
|
||||
"per_user_limit": 1,
|
||||
"valid_type": "period",
|
||||
"valid_days": 1,
|
||||
"valid_from": "2026-01-01",
|
||||
"valid_to": "2026-01-01",
|
||||
"issue_from": "2026-01-01",
|
||||
"issue_to": "2026-01-01",
|
||||
"is_combinable": true,
|
||||
"target_scope": "all",
|
||||
"products": [
|
||||
"예시값"
|
||||
],
|
||||
"categories": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -184,10 +365,31 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| ids | body | array | 예 | min 1 | 대상 리소스 식별자 배열 (대량 작업 대상) |
|
||||
| issue_status | body | string | 예 | `issuing`, `stopped` | 일괄 적용할 발급상태: issuing(발급중), stopped(발급중단) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/promotion-coupons/bulk-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"issue_status": "issuing"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -213,9 +415,38 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/promotion-coupons/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| coupon_id | integer | `1` | coupon 식별자 (연관 리소스 참조) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "쿠폰이 삭제되었습니다.",
|
||||
"data": {
|
||||
"coupon_id": 1
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -242,9 +473,186 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/promotion-coupons/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 쿠폰","en":"API Doc Sample Coupon"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 쿠폰` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| description | null | `null` | 설명 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_description | null | `null` | `description` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| target_type | string | `order_amount` | 적용대상: product_amount(상품금액), order_amount(주문금액), shipping_fee(배송비) |
|
||||
| target_type_label | string | `주문금액` | `target_type` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| target_type_badge_color | string | `blue` | `target_type` 배지 색상 (상품금액=teal, 주문금액=blue, 배송비=orange) |
|
||||
| discount_type | string | `fixed` | 혜택유형: fixed(정액), rate(정률) |
|
||||
| discount_type_label | string | `정액할인` | `discount_type` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| discount_value | integer | `1000` | 혜택값 (정액: 금액, 정률: %) |
|
||||
| discount_max_amount | null | `null` | 최대 할인액 (정률 시) |
|
||||
| min_order_amount | integer | `0` | 최소 주문금액 |
|
||||
| benefit_formatted | string | `1,000원 할인` | `benefit` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| multi_currency_discount_value | object | `{"KRW":{"price":1000,"formatted":"1,000원","is_default":tr…` | 정액 할인 금액의 통화별 환산 맵 (정률은 통화 무관이라 null) |
|
||||
| multi_currency_min_order_amount | null | `null` | 최소 주문금액의 통화별 환산 맵 (0이면 null) |
|
||||
| multi_currency_discount_max_amount | null | `null` | 최대 할인액의 통화별 환산 맵 (미설정 시 null) |
|
||||
| issue_method | string | `download` | 발급방법: direct(직접발급), download(다운로드), auto(자동발급) |
|
||||
| issue_method_label | string | `다운로드` | `issue_method` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| issue_method_badge_color | string | `teal` | `issue_method` 배지 색상 (직접발급=gray, 다운로드=teal, 자동발급=blue) |
|
||||
| issue_condition | string | `manual` | 발급조건: manual(수동), signup(회원가입), first_purchase(첫구매), birthday(생일) |
|
||||
| issue_condition_label | string | `수동발급` | `issue_condition` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| issue_condition_badge_color | string | `orange` | `issue_condition` 배지 색상 (수동=orange, 회원가입=blue, 첫구매=teal, 생일=pink) |
|
||||
| issue_status | string | `issuing` | 발급상태: issuing(발급중), stopped(발급중단) |
|
||||
| issue_status_label | string | `발급중` | `issue_status` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| issue_status_badge_color | string | `blue` | `issue_status` 배지 색상 (발급중=blue, 발급중단=orange) |
|
||||
| total_quantity | null | `null` | 총 발급 수량 (NULL=무제한) |
|
||||
| issued_count | integer | `0` | issued 개수 (집계) |
|
||||
| per_user_limit | integer | `1` | 회원당 발급 제한 |
|
||||
| issue_count_formatted | string | `0/무제한` | `issue_count` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| valid_type | string | `period` | 유효기간 유형: period(기간지정), days_from_issue(발급일로부터) |
|
||||
| valid_days | null | `null` | 발급일로부터 N일 (valid_type=days_from_issue) |
|
||||
| valid_from | null | `null` | 유효기간 시작 |
|
||||
| valid_to | null | `null` | 유효기간 종료 |
|
||||
| valid_period_formatted | string | `-` | `valid_period` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| issue_from | null | `null` | 발급기간 시작 |
|
||||
| issue_to | null | `null` | 발급기간 종료 |
|
||||
| issue_period_formatted | string | `상시발급` | `issue_period` 값의 표시용 포맷 문자열 (통화/용량/일시 등 로케일·단위 포맷) |
|
||||
| is_combinable | boolean | `false` | combinable 여부 |
|
||||
| target_scope | string | `all` | 적용 범위: all(전체), products(특정상품), categories(특정카테고리) |
|
||||
| target_scope_label | string | `전체상품` | `target_scope` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| is_issuable | boolean | `true` | issuable 여부 |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| created_by | null | `null` | 쿠폰 등록자(관리자) 식별자 (users 참조, 삭제 시 null) |
|
||||
| created_by_name | string | `-` | 등록자 이름 (creator 미로드/미설정 시 `-`) |
|
||||
| created_by_email | null | `null` | 등록자 이메일 (creator 관계 파생) |
|
||||
| creator | null | `null` | 생성자 정보 객체 (uuid/name/email — creator 관계 파생) |
|
||||
| included_products | array | `[]` | 적용 대상 포함 상품 목록 (target_scope=products 시 이 상품에만 적용) |
|
||||
| excluded_products | array | `[]` | 적용 제외 상품 목록 (해당 상품은 쿠폰 적용에서 제외) |
|
||||
| included_categories | array | `[]` | 적용 대상 포함 카테고리 목록 (target_scope=categories 시 이 카테고리에만 적용) |
|
||||
| excluded_categories | array | `[]` | 적용 제외 카테고리 목록 (해당 카테고리는 쿠폰 적용에서 제외) |
|
||||
| issues_count | integer | `0` | issues 개수 (집계) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "쿠폰 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 쿠폰",
|
||||
"en": "API Doc Sample Coupon"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 쿠폰",
|
||||
"description": null,
|
||||
"localized_description": null,
|
||||
"target_type": "order_amount",
|
||||
"target_type_label": "주문금액",
|
||||
"target_type_badge_color": "blue",
|
||||
"discount_type": "fixed",
|
||||
"discount_type_label": "정액할인",
|
||||
"discount_value": 1000,
|
||||
"discount_max_amount": null,
|
||||
"min_order_amount": 0,
|
||||
"benefit_formatted": "1,000원 할인",
|
||||
"multi_currency_discount_value": {
|
||||
"KRW": {
|
||||
"price": 1000,
|
||||
"formatted": "1,000원",
|
||||
"is_default": true,
|
||||
"editable": true
|
||||
},
|
||||
"USD": {
|
||||
"price": 0.85,
|
||||
"formatted": "$0.85",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 0.85
|
||||
},
|
||||
"JPY": {
|
||||
"price": 115,
|
||||
"formatted": "¥115",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 115
|
||||
},
|
||||
"CNY": {
|
||||
"price": 5.8,
|
||||
"formatted": "元5.80",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 5.8
|
||||
},
|
||||
"EUR": {
|
||||
"price": 0.78,
|
||||
"formatted": "€0.78",
|
||||
"is_default": false,
|
||||
"editable": false,
|
||||
"exchange_rate": 0.78
|
||||
}
|
||||
},
|
||||
"multi_currency_min_order_amount": null,
|
||||
"multi_currency_discount_max_amount": null,
|
||||
"issue_method": "download",
|
||||
"issue_method_label": "다운로드",
|
||||
"issue_method_badge_color": "teal",
|
||||
"issue_condition": "manual",
|
||||
"issue_condition_label": "수동발급",
|
||||
"issue_condition_badge_color": "orange",
|
||||
"issue_status": "issuing",
|
||||
"issue_status_label": "발급중",
|
||||
"issue_status_badge_color": "blue",
|
||||
"total_quantity": null,
|
||||
"issued_count": 0,
|
||||
"per_user_limit": 1,
|
||||
"issue_count_formatted": "0/무제한",
|
||||
"valid_type": "period",
|
||||
"valid_days": null,
|
||||
"valid_from": null,
|
||||
"valid_to": null,
|
||||
"valid_period_formatted": "-",
|
||||
"issue_from": null,
|
||||
"issue_to": null,
|
||||
"issue_period_formatted": "상시발급",
|
||||
"is_combinable": false,
|
||||
"target_scope": "all",
|
||||
"target_scope_label": "전체상품",
|
||||
"is_issuable": true,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"created_by": null,
|
||||
"created_by_name": "-",
|
||||
"created_by_email": null,
|
||||
"creator": null,
|
||||
"included_products": [],
|
||||
"excluded_products": [],
|
||||
"included_categories": [],
|
||||
"excluded_categories": [],
|
||||
"issues_count": 0,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -295,10 +703,57 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.coupon.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/promotion-coupons/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"description": [
|
||||
"예시 내용입니다."
|
||||
],
|
||||
"target_type": "product_amount",
|
||||
"discount_type": "fixed",
|
||||
"discount_value": 1,
|
||||
"discount_max_amount": 1,
|
||||
"min_order_amount": 1,
|
||||
"issue_method": "direct",
|
||||
"issue_condition": "manual",
|
||||
"issue_status": "issuing",
|
||||
"total_quantity": 1,
|
||||
"per_user_limit": 1,
|
||||
"valid_type": "period",
|
||||
"valid_days": 1,
|
||||
"valid_from": "2026-01-01",
|
||||
"valid_to": "2026-01-01",
|
||||
"issue_from": "2026-01-01",
|
||||
"issue_to": "2026-01-01",
|
||||
"is_combinable": true,
|
||||
"target_scope": "all",
|
||||
"products": [
|
||||
"예시값"
|
||||
],
|
||||
"categories": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -326,10 +781,30 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
| user_uuids | body | array | 예 | min 1 | 쿠폰을 직접 발급할 대상 회원 UUID 배열 (내부 회원 ID 로 해석 후 발급) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/promotion-coupons/1/issue-direct HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"user_uuids": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -361,9 +836,45 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.coupon.issues_list_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/promotion-coupons/1/issues?user_id=9f8b2c1a-4d3e-4a2b-8c1d-0e1f2a3b4c5d&status=available&per_page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "쿠폰 발급 내역을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [],
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 0,
|
||||
"from": null,
|
||||
"to": null,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -392,10 +903,23 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
| issueId | path | string | 예 | — | 대상 issue의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/promotion-coupons/1/issues/{issueId} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -29,10 +29,22 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| hash | path | string | 예 | — | 대상 리소스의 해시 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/review-image/{hash} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -44,6 +44,15 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.review.list_validation_rules`, `sirsoft-ecommerce.review.list_validation_messages`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/reviews?search_field=all&search_keyword=%EC%98%88%EC%8B%9C%EA%B0%92&rating=1&reply_status=all&photo=photo&has_photo=1&status=%EC%98%88%EC%8B%9C%EA%B0%92&start_date=2026-01-01&end_date=2026-01-01&sort=created_at_desc&sort_by=created_at&sort_order=asc&per_page=1&page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -80,6 +89,106 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| updated_at | string | `2026-07-07 14:47:31` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "리뷰 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"order_option_id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"user": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자",
|
||||
"email": "apidoc-sample-user@example.com"
|
||||
},
|
||||
"product": {
|
||||
"id": 1,
|
||||
"name": "API 문서 샘플 상품",
|
||||
"thumbnail_url": null
|
||||
},
|
||||
"option_snapshot": null,
|
||||
"option_snapshot_label": "",
|
||||
"rating": 5,
|
||||
"content": "Alias quas iusto dolorem eum eveniet ad omnis. Id neque consequatur fuga ut. Enim cum mollitia nisi. Adipisci sunt tenetur et tempora tempora eius rerum.",
|
||||
"content_mode": "text",
|
||||
"status": "visible",
|
||||
"status_label": "전시중",
|
||||
"status_badge_color": "blue",
|
||||
"images": [],
|
||||
"image_count": 0,
|
||||
"orderOption": {
|
||||
"id": 1,
|
||||
"order_id": 5,
|
||||
"order_number": "ORD-20260708-000002",
|
||||
"quantity": 2,
|
||||
"created_at": "2026-07-08 10:44:49"
|
||||
},
|
||||
"has_reply": false,
|
||||
"has_reply_label": "미답변",
|
||||
"has_reply_badge_color": "gray",
|
||||
"reply_content": null,
|
||||
"reply_content_mode": "text",
|
||||
"reply_admin_uuid": null,
|
||||
"reply_admin": null,
|
||||
"replied_at": null,
|
||||
"reply_updated_at": null,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"links": {
|
||||
"first": "https://api.example.com/api/modules/sirsoft-ecommerce/admin/reviews?page=1",
|
||||
"last": "https://api.example.com/api/modules/sirsoft-ecommerce/admin/reviews?page=1",
|
||||
"prev": null,
|
||||
"next": null
|
||||
},
|
||||
"meta": {
|
||||
"current_page": 1,
|
||||
"from": 1,
|
||||
"last_page": 1,
|
||||
"links": [
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.previous",
|
||||
"page": null,
|
||||
"active": false
|
||||
},
|
||||
{
|
||||
"url": "https://api.example.com/api/modules/sirsoft-ecommerce/admin/reviews?page=1",
|
||||
"label": "1",
|
||||
"page": 1,
|
||||
"active": true
|
||||
},
|
||||
{
|
||||
"url": null,
|
||||
"label": "pagination.next",
|
||||
"page": null,
|
||||
"active": false
|
||||
}
|
||||
],
|
||||
"path": "https://api.example.com/api/modules/sirsoft-ecommerce/admin/reviews",
|
||||
"per_page": 25,
|
||||
"to": 1,
|
||||
"total": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -109,10 +218,32 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.review.bulk_validation_rules`, `sirsoft-ecommerce.review.bulk_validation_messages`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/reviews/bulk HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"action": "delete",
|
||||
"status": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -138,9 +269,38 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| review | path | string | 예 | — | 대상 review의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/reviews/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| deleted | boolean | `true` | 삭제 처리 성공 여부 (true 이면 리뷰와 첨부 이미지가 제거됨) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "리뷰가 삭제되었습니다.",
|
||||
"data": {
|
||||
"deleted": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -167,6 +327,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| review | path | string | 예 | — | 대상 review의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/reviews/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -203,6 +372,67 @@ _단건 응답: `data` 객체의 필드._
|
||||
| updated_at | string | `2026-07-07 14:47:31` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "리뷰 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"order_option_id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"user": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자",
|
||||
"email": "apidoc-sample-user@example.com"
|
||||
},
|
||||
"product": {
|
||||
"id": 1,
|
||||
"name": "API 문서 샘플 상품",
|
||||
"thumbnail_url": null
|
||||
},
|
||||
"option_snapshot": null,
|
||||
"option_snapshot_label": "",
|
||||
"rating": 5,
|
||||
"content": "Alias quas iusto dolorem eum eveniet ad omnis. Id neque consequatur fuga ut. Enim cum mollitia nisi. Adipisci sunt tenetur et tempora tempora eius rerum.",
|
||||
"content_mode": "text",
|
||||
"status": "visible",
|
||||
"status_label": "전시중",
|
||||
"status_badge_color": "blue",
|
||||
"images": [],
|
||||
"image_count": 0,
|
||||
"orderOption": {
|
||||
"id": 1,
|
||||
"order_id": 5,
|
||||
"order_number": "ORD-20260708-000002",
|
||||
"quantity": 2,
|
||||
"created_at": "2026-07-08 10:44:49"
|
||||
},
|
||||
"has_reply": false,
|
||||
"has_reply_label": "미답변",
|
||||
"has_reply_badge_color": "gray",
|
||||
"reply_content": null,
|
||||
"reply_content_mode": "text",
|
||||
"reply_admin_uuid": null,
|
||||
"reply_admin": null,
|
||||
"replied_at": null,
|
||||
"reply_updated_at": null,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -228,9 +458,89 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| review | path | string | 예 | — | 대상 review의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/reviews/1/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| product_id | integer | `1` | product 식별자 (연관 리소스 참조) |
|
||||
| order_option_id | integer | `1` | order option 식별자 (연관 리소스 참조) |
|
||||
| user_id | string | `a234c2b1-cde8-437f-b28b-23323be2b98d` | user 식별자 (연관 리소스 참조) |
|
||||
| user | object | `{"uuid":"a234c2b1-cde8-437f-b28b-23323be2b98d","name":"AP…` | 대상 사용자 정보 객체 (uuid/name/email 등 — user 관계 파생) |
|
||||
| option_snapshot | null | `null` | 주문 시점 옵션 스냅샷 (옵션명 보존용) |
|
||||
| option_snapshot_label | string | `` | `option_snapshot` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| rating | integer | `5` | 별점 (1~5) |
|
||||
| content | string | `Alias quas iusto dolorem eum eveniet …` | 본문 내용 |
|
||||
| content_mode | string | `text` | 콘텐츠 모드: text / html |
|
||||
| status | string | `visible` | 상태 값 (도메인별 상태 집합 — 사람이 읽는 라벨은 status_label, UI 변형은 status_variant 참조) |
|
||||
| status_label | string | `전시중` | 상태의 사람이 읽는 라벨 (상태 Enum label() 산물) |
|
||||
| status_badge_color | string | `blue` | 상태 뱃지 색상 (visible=blue / hidden=gray) |
|
||||
| has_reply | boolean | `false` | reply 여부 |
|
||||
| has_reply_label | string | `미답변` | `has_reply` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| has_reply_badge_color | string | `gray` | 답변 여부 뱃지 색상 (답변완료=green / 미답변=gray) |
|
||||
| reply_content | null | `null` | 판매자 답변 내용 |
|
||||
| reply_content_mode | string | `text` | 답변 콘텐츠 모드: text / html |
|
||||
| replied_at | null | `null` | replied 일시 |
|
||||
| reply_updated_at | null | `null` | reply updated 일시 |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "답변이 삭제되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"order_option_id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"user": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자",
|
||||
"email": "apidoc-sample-user@example.com"
|
||||
},
|
||||
"option_snapshot": null,
|
||||
"option_snapshot_label": "",
|
||||
"rating": 5,
|
||||
"content": "Alias quas iusto dolorem eum eveniet ad omnis. Id neque consequatur fuga ut. Enim cum mollitia nisi. Adipisci sunt tenetur et tempora tempora eius rerum.",
|
||||
"content_mode": "text",
|
||||
"status": "visible",
|
||||
"status_label": "전시중",
|
||||
"status_badge_color": "blue",
|
||||
"has_reply": false,
|
||||
"has_reply_label": "미답변",
|
||||
"has_reply_badge_color": "gray",
|
||||
"reply_content": null,
|
||||
"reply_content_mode": "text",
|
||||
"replied_at": null,
|
||||
"reply_updated_at": null,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -261,9 +571,95 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.review.store_reply_validation_rules`, `sirsoft-ecommerce.review.store_reply_validation_messages`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/reviews/1/reply HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"reply_content": "예시 내용입니다.",
|
||||
"reply_content_mode": "text"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| product_id | integer | `1` | product 식별자 (연관 리소스 참조) |
|
||||
| order_option_id | integer | `1` | order option 식별자 (연관 리소스 참조) |
|
||||
| user_id | string | `a234c2b1-cde8-437f-b28b-23323be2b98d` | user 식별자 (연관 리소스 참조) |
|
||||
| user | object | `{"uuid":"a234c2b1-cde8-437f-b28b-23323be2b98d","name":"AP…` | 대상 사용자 정보 객체 (uuid/name/email 등 — user 관계 파생) |
|
||||
| option_snapshot | null | `null` | 주문 시점 옵션 스냅샷 (옵션명 보존용) |
|
||||
| option_snapshot_label | string | `` | `option_snapshot` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| rating | integer | `5` | 별점 (1~5) |
|
||||
| content | string | `Alias quas iusto dolorem eum eveniet …` | 본문 내용 |
|
||||
| content_mode | string | `text` | 콘텐츠 모드: text / html |
|
||||
| status | string | `visible` | 상태 값 (도메인별 상태 집합 — 사람이 읽는 라벨은 status_label, UI 변형은 status_variant 참조) |
|
||||
| status_label | string | `전시중` | 상태의 사람이 읽는 라벨 (상태 Enum label() 산물) |
|
||||
| status_badge_color | string | `blue` | 상태 뱃지 색상 (visible=blue / hidden=gray) |
|
||||
| has_reply | boolean | `true` | reply 여부 |
|
||||
| has_reply_label | string | `답변완료` | `has_reply` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| has_reply_badge_color | string | `green` | 답변 여부 뱃지 색상 (답변완료=green / 미답변=gray) |
|
||||
| reply_content | string | `실측 예시값` | 판매자 답변 내용 |
|
||||
| reply_content_mode | string | `text` | 답변 콘텐츠 모드: text / html |
|
||||
| replied_at | string | `2026-07-08 15:00:32` | replied 일시 |
|
||||
| reply_updated_at | null | `null` | reply updated 일시 |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:32` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "답변이 저장되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"product_id": 1,
|
||||
"order_option_id": 1,
|
||||
"user_id": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"user": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자",
|
||||
"email": "apidoc-sample-user@example.com"
|
||||
},
|
||||
"option_snapshot": null,
|
||||
"option_snapshot_label": "",
|
||||
"rating": 5,
|
||||
"content": "Alias quas iusto dolorem eum eveniet ad omnis. Id neque consequatur fuga ut. Enim cum mollitia nisi. Adipisci sunt tenetur et tempora tempora eius rerum.",
|
||||
"content_mode": "text",
|
||||
"status": "visible",
|
||||
"status_label": "전시중",
|
||||
"status_badge_color": "blue",
|
||||
"has_reply": true,
|
||||
"has_reply_label": "답변완료",
|
||||
"has_reply_badge_color": "green",
|
||||
"reply_content": "실측 예시값",
|
||||
"reply_content_mode": "text",
|
||||
"replied_at": "2026-07-08 15:00:32",
|
||||
"reply_updated_at": null,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:32",
|
||||
"abilities": {
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -294,10 +690,28 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.review.update_status_validation_rules`, `sirsoft-ecommerce.review.update_status_validation_messages`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/reviews/1/status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"status": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -330,10 +744,32 @@ _단건 응답: `data` 객체의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.review.store_validation_rules`, `sirsoft-ecommerce.review.store_validation_messages`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/user/reviews HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"product_id": 1,
|
||||
"order_option_id": 1,
|
||||
"rating": 1,
|
||||
"content": "예시 내용입니다.",
|
||||
"content_mode": "text"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -359,9 +795,40 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| orderOptionId | path | string | 예 | — | 대상 order option의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/reviews/can-write/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| can_write | boolean | `false` | write 수행 가능 여부 (권한 기반) |
|
||||
| reason | string | `not_own_order` | 리뷰 작성 불가 사유 코드 (`can_write` 가 false 일 때만 값이 있고 가능하면 null. order_option_not_found 주문옵션 없음, not_own_order 본인 주문 아님, not_confirmed 구매확정 전, deadline_passed 작성 기한 초과, already_written 이미 작성함) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "리뷰 작성 가능 여부를 확인했습니다.",
|
||||
"data": {
|
||||
"can_write": false,
|
||||
"reason": "not_own_order"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -387,9 +854,38 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| review | path | string | 예 | — | 대상 review의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/user/reviews/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| deleted | boolean | `true` | 삭제 처리 성공 여부 (true 이면 리뷰와 첨부 이미지가 제거됨) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "리뷰가 삭제되었습니다.",
|
||||
"data": {
|
||||
"deleted": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -417,10 +913,31 @@ _단건 응답: `data` 객체의 필드._
|
||||
| review | path | string | 예 | — | 대상 review의 식별자 |
|
||||
| image | body | file | 예 | max 10240 | 첨부할 이미지 파일 (최대 용량은 리뷰 설정 `review_settings.max_image_size_mb` 기반, 폴백 10MB) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/user/reviews/1/images HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: multipart/form-data; boundary=----G7ExampleBoundary
|
||||
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="image"; filename="example.pdf"
|
||||
Content-Type: application/octet-stream
|
||||
|
||||
(바이너리 파일 내용)
|
||||
------G7ExampleBoundary--
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -448,10 +965,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| review | path | string | 예 | — | 대상 review의 식별자 |
|
||||
| image | path | string | 예 | — | 대상 image의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/user/reviews/1/images/{image} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/shipping-carriers HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -49,6 +58,77 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| updater | array | `[]` | 최종 수정자 정보 객체 (id/name — updater 관계 로드 시) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송사 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 13,
|
||||
"id": 13,
|
||||
"code": "apidoc",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송사",
|
||||
"en": "API Doc Sample Carrier"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 배송사",
|
||||
"type": "domestic",
|
||||
"type_label": "국내",
|
||||
"tracking_url": null,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"number": 12,
|
||||
"id": 1,
|
||||
"code": "cj",
|
||||
"name": {
|
||||
"ko": "CJ대한통운",
|
||||
"en": "CJ Logistics"
|
||||
},
|
||||
"localized_name": "CJ대한통운",
|
||||
"type": "domestic",
|
||||
"type_label": "국내",
|
||||
"tracking_url": "https://trace.cjlogistics.com/next/tracking.html?wblNo={tracking_number}",
|
||||
"is_active": true,
|
||||
"sort_order": 1,
|
||||
"created_at": "2026-07-08 10:43:32",
|
||||
"updated_at": "2026-07-08 10:43:32",
|
||||
"creator": [],
|
||||
"updater": [],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
"... (총 13건 중 2건 표시)"
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -80,10 +160,35 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_carrier.create_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/shipping-carriers HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"code": "예시값",
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"type": "예시값",
|
||||
"tracking_url": "https://example.com",
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -107,6 +212,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/shipping-carriers/active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -117,6 +231,112 @@ _요청 파라미터 없음._
|
||||
| type | string | `domestic` | 배송사 유형 (`domestic` 국내 / `international` 해외) |
|
||||
| tracking_url | string | `https://trace.cjlogistics.com/next/tr…` | tracking URL |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송사 목록을 조회했습니다.",
|
||||
"data": [
|
||||
{
|
||||
"value": 13,
|
||||
"label": "API 문서 샘플 배송사",
|
||||
"code": "apidoc",
|
||||
"type": "domestic",
|
||||
"tracking_url": null
|
||||
},
|
||||
{
|
||||
"value": 1,
|
||||
"label": "CJ대한통운",
|
||||
"code": "cj",
|
||||
"type": "domestic",
|
||||
"tracking_url": "https://trace.cjlogistics.com/next/tracking.html?wblNo={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 2,
|
||||
"label": "한진택배",
|
||||
"code": "hanjin",
|
||||
"type": "domestic",
|
||||
"tracking_url": "https://www.hanjin.com/kor/CMS/DeliveryMgr/WaybillResult.do?wblnb={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 3,
|
||||
"label": "롯데택배",
|
||||
"code": "lotte",
|
||||
"type": "domestic",
|
||||
"tracking_url": "https://www.lotteglogis.com/home/reservation/tracking/link498?InvNo={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 4,
|
||||
"label": "로젠택배",
|
||||
"code": "logen",
|
||||
"type": "domestic",
|
||||
"tracking_url": "https://www.ilogen.com/web/personal/trace/{tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 5,
|
||||
"label": "UPS",
|
||||
"code": "ups",
|
||||
"type": "international",
|
||||
"tracking_url": "https://www.ups.com/track?tracknum={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 6,
|
||||
"label": "EMS",
|
||||
"code": "ems",
|
||||
"type": "international",
|
||||
"tracking_url": "https://service.epost.go.kr/trace.RetrieveEmsRi498.postal?POST_CODE={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 7,
|
||||
"label": "DHL",
|
||||
"code": "dhl",
|
||||
"type": "international",
|
||||
"tracking_url": "https://www.dhl.com/kr-ko/home/tracking/tracking-express.html?submit=1&tracking-id={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 8,
|
||||
"label": "FedEx",
|
||||
"code": "fedex",
|
||||
"type": "international",
|
||||
"tracking_url": "https://www.fedex.com/fedextrack/?tracknumbers={tracking_number}"
|
||||
},
|
||||
{
|
||||
"value": 9,
|
||||
"label": "SF Express",
|
||||
"code": "sf",
|
||||
"type": "international",
|
||||
"tracking_url": null
|
||||
},
|
||||
{
|
||||
"value": 10,
|
||||
"label": "야마토운수",
|
||||
"code": "yamato",
|
||||
"type": "international",
|
||||
"tracking_url": null
|
||||
},
|
||||
{
|
||||
"value": 11,
|
||||
"label": "사가와익스프레스",
|
||||
"code": "sagawa",
|
||||
"type": "international",
|
||||
"tracking_url": null
|
||||
},
|
||||
{
|
||||
"value": 12,
|
||||
"label": "기타",
|
||||
"code": "other",
|
||||
"type": "domestic",
|
||||
"tracking_url": null
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -141,9 +361,38 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/shipping-carriers/13 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| carrier_id | integer | `13` | carrier 식별자 (연관 리소스 참조) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송사가 삭제되었습니다.",
|
||||
"data": {
|
||||
"carrier_id": 13
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -170,9 +419,67 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/shipping-carriers/13 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `13` | 기본 키 (내부 식별자) |
|
||||
| code | string | `apidoc` | 고유 코드 (cj, fedex 등) |
|
||||
| name | object | `{"ko":"API 문서 샘플 배송사","en":"API Doc Sample Carrier"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 배송사` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| type | string | `domestic` | 배송사 유형: domestic(국내), international(해외) |
|
||||
| type_label | string | `국내` | `type` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| tracking_url | null | `null` | tracking URL |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송사 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 13,
|
||||
"code": "apidoc",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송사",
|
||||
"en": "API Doc Sample Carrier"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 배송사",
|
||||
"type": "domestic",
|
||||
"type_label": "국내",
|
||||
"tracking_url": null,
|
||||
"is_active": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -207,10 +514,35 @@ _요청 파라미터 없음._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_carrier.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/shipping-carriers/13 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"code": "예시값",
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"type": "예시값",
|
||||
"tracking_url": "https://example.com",
|
||||
"is_active": true,
|
||||
"sort_order": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -237,9 +569,67 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/shipping-carriers/13/toggle-status HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `13` | 기본 키 (내부 식별자) |
|
||||
| code | string | `apidoc` | 고유 코드 (cj, fedex 등) |
|
||||
| name | object | `{"ko":"API 문서 샘플 배송사","en":"API Doc Sample Carrier"}` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| localized_name | string | `API 문서 샘플 배송사` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| type | string | `domestic` | 배송사 유형: domestic(국내), international(해외) |
|
||||
| type_label | string | `국내` | `type` 값의 사람이 읽는 라벨 (현지화/Enum 파생) |
|
||||
| tracking_url | null | `null` | tracking URL |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:34` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-ecommerce::messages.shipping_carriers.status_changed",
|
||||
"data": {
|
||||
"id": 13,
|
||||
"code": "apidoc",
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송사",
|
||||
"en": "API Doc Sample Carrier"
|
||||
},
|
||||
"localized_name": "API 문서 샘플 배송사",
|
||||
"type": "domestic",
|
||||
"type_label": "국내",
|
||||
"tracking_url": null,
|
||||
"is_active": false,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:34",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -27,6 +27,15 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/user/shipping-country HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -35,6 +44,22 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- |
|
||||
| preferred_shipping_country | null | `null` | 회원이 저장한 선호 배송국가 코드 (2자리 대문자, 미설정 시 `null`) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송국가를 조회했습니다.",
|
||||
"data": {
|
||||
"preferred_shipping_country": null
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -58,9 +83,43 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| shipping_country | body | string | 예 | — | 저장할 선호 배송국가 2자리 코드 (활성 배송가능 국가만 허용, 대문자로 정규화되어 저장) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/user/shipping-country HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"shipping_country": "KR"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| preferred_shipping_country | string | `KR` | 변경 후 저장된 회원 선호 배송국가 코드 (2자리 대문자 ISO 국가코드) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송국가가 변경되었습니다.",
|
||||
"data": {
|
||||
"preferred_shipping_country": "KR"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -39,6 +39,15 @@
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_policy.list_validation_rules`, `sirsoft-ecommerce.shipping_policy.list_validation_messages`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/shipping-policies?search=%EC%98%88%EC%8B%9C%EA%B0%92&shipping_methods=%EC%98%88%EC%8B%9C%EA%B0%92&charge_policies=%EC%98%88%EC%8B%9C%EA%B0%92&countries=KR&is_active=%2C%20&sort_by=id&sort_order=asc&per_page=1&page=1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
@@ -59,6 +68,66 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| updated_at | string | `2026-07-07 14:47:31` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송정책 목록을 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"number": 1,
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송정책",
|
||||
"en": "API Doc Sample Shipping Policy"
|
||||
},
|
||||
"name_localized": "API 문서 샘플 배송정책",
|
||||
"country_settings": [],
|
||||
"fee_summary": "",
|
||||
"countries_display": "",
|
||||
"is_active": true,
|
||||
"is_default": false,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
},
|
||||
"statistics": {
|
||||
"total": 1,
|
||||
"active": 1,
|
||||
"inactive": 0,
|
||||
"shipping_method": [],
|
||||
"charge_policy": []
|
||||
},
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 1,
|
||||
"from": 1,
|
||||
"to": 1,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -90,10 +159,36 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_policy.store_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/shipping-policies HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"is_active": true,
|
||||
"is_default": true,
|
||||
"sort_order": 1,
|
||||
"country_settings": [
|
||||
"KR"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -117,6 +212,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/shipping-policies/active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -127,6 +231,28 @@ _요청 파라미터 없음._
|
||||
| fee_summary | string | `KR: 외부 API 연동 (실시간 계산)` | 국가별 배송비 요약 텍스트 (`country_code: fee` 형태를 ` \| ` 로 결합) |
|
||||
| is_default | boolean | `false` | default 여부 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "sirsoft-ecommerce::messages.shipping_policy.active_list_retrieved",
|
||||
"data": [
|
||||
{
|
||||
"value": 1,
|
||||
"label": "API 문서 샘플 배송정책",
|
||||
"countries_display": "",
|
||||
"fee_summary": "",
|
||||
"is_default": false
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -153,10 +279,23 @@ _요청 파라미터 없음._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_policy.bulk_delete_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/shipping-policies/bulk?ids=%EC%98%88%EC%8B%9C%EA%B0%92 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -185,10 +324,31 @@ _요청 파라미터 없음._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_policy.bulk_toggle_active_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/shipping-policies/bulk-toggle-active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"is_active": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -217,10 +377,37 @@ _요청 파라미터 없음._
|
||||
| config | body | array | 아니오 | — | API 호출 고급 설정 (HTTP 메서드·인증방식·필드 매핑·응답 형식/경로 등) |
|
||||
| sample | body | array | 아니오 | — | 테스트 계산에 사용할 샘플 주문 데이터 (무게/금액/수량 등) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/admin/shipping-policies/test-api-call HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"endpoint": "예시값",
|
||||
"request_fields": [
|
||||
"예시값"
|
||||
],
|
||||
"config": [
|
||||
"예시값"
|
||||
],
|
||||
"sample": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -246,9 +433,34 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/admin/shipping-policies/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송정책이 삭제되었습니다.",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -275,9 +487,67 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/admin/shipping-policies/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 배송정책","en":"API Doc Sample Shipping Poli…` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| name_localized | string | `API 문서 샘플 배송정책` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| country_settings | array | `[]` | 국가별 배송 설정 목록 (countrySettings 관계 로드 시 각 국가의 배송방식·부과정책·배송비 상세) |
|
||||
| fee_summary | string | `` | 활성 국가별 설정을 종합한 배송비 요약 텍스트 (예: `KR: 3000원 \| US: $20`, 활성 설정 없으면 빈 문자열) |
|
||||
| countries_display | string | `` | 활성 배송 국가를 국기 이모지로 표시한 문자열 (최대 3개 노출, 초과분은 `+N` 축약) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| is_default | boolean | `false` | default 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:49` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송정책 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송정책",
|
||||
"en": "API Doc Sample Shipping Policy"
|
||||
},
|
||||
"name_localized": "API 문서 샘플 배송정책",
|
||||
"country_settings": [],
|
||||
"fee_summary": "",
|
||||
"countries_display": "",
|
||||
"is_active": true,
|
||||
"is_default": false,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 10:44:49",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -311,10 +581,36 @@ _요청 파라미터 없음._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.shipping_policy.update_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-ecommerce/admin/shipping-policies/1 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"name": [
|
||||
"예시 이름"
|
||||
],
|
||||
"is_active": true,
|
||||
"is_default": true,
|
||||
"sort_order": 1,
|
||||
"country_settings": [
|
||||
"KR"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -341,9 +637,65 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/shipping-policies/1/set-default HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 배송정책","en":"API Doc Sample Shipping Poli…` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| name_localized | string | `API 문서 샘플 배송정책` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| fee_summary | string | `` | 활성 국가별 설정을 종합한 배송비 요약 텍스트 (예: `KR: 3000원 \| US: $20`, 활성 설정 없으면 빈 문자열) |
|
||||
| countries_display | string | `` | 활성 배송 국가를 국기 이모지로 표시한 문자열 (최대 3개 노출, 초과분은 `+N` 축약) |
|
||||
| is_active | boolean | `true` | active 여부 |
|
||||
| is_default | boolean | `true` | default 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:35` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "기본 배송정책이 설정되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송정책",
|
||||
"en": "API Doc Sample Shipping Policy"
|
||||
},
|
||||
"name_localized": "API 문서 샘플 배송정책",
|
||||
"fee_summary": "",
|
||||
"countries_display": "",
|
||||
"is_active": true,
|
||||
"is_default": true,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:35",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -370,9 +722,65 @@ _요청 파라미터 없음._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/shipping-policies/1/toggle-active HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `1` | 기본 키 (내부 식별자) |
|
||||
| name | object | `{"ko":"API 문서 샘플 배송정책","en":"API Doc Sample Shipping Poli…` | 대상의 이름/명칭 (다국어 필드는 로케일별 값 객체) |
|
||||
| name_localized | string | `API 문서 샘플 배송정책` | `name` 의 현재 로케일 해석 값 (다국어 필드를 표시용 문자열로 해석) |
|
||||
| fee_summary | string | `` | 활성 국가별 설정을 종합한 배송비 요약 텍스트 (예: `KR: 3000원 \| US: $20`, 활성 설정 없으면 빈 문자열) |
|
||||
| countries_display | string | `` | 활성 배송 국가를 국기 이모지로 표시한 문자열 (최대 3개 노출, 초과분은 `+N` 축약) |
|
||||
| is_active | boolean | `false` | active 여부 |
|
||||
| is_default | boolean | `false` | default 여부 |
|
||||
| sort_order | integer | `0` | 표시 정렬 순서 값 (작을수록 우선) |
|
||||
| created_at | string | `2026-07-08 10:44:49` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:00:35` | 최종 수정 일시 |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송정책 사용여부가 변경되었습니다.",
|
||||
"data": {
|
||||
"id": 1,
|
||||
"name": {
|
||||
"ko": "API 문서 샘플 배송정책",
|
||||
"en": "API Doc Sample Shipping Policy"
|
||||
},
|
||||
"name_localized": "API 문서 샘플 배송정책",
|
||||
"fee_summary": "",
|
||||
"countries_display": "",
|
||||
"is_active": false,
|
||||
"is_default": false,
|
||||
"sort_order": 0,
|
||||
"created_at": "2026-07-08 10:44:49",
|
||||
"updated_at": "2026-07-08 15:00:35",
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -30,10 +30,28 @@
|
||||
| user | path | string | 예 | — | 대상 user의 식별자 |
|
||||
| currency | body | string | 예 | — | 회원에게 지정할 결제 통화 코드 (등록 통화: is_default 또는 exchange_rate>0 인 통화만 허용) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/users/a234c2b1-cde8-437f-b28b-23323be2b98d/currency HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"currency": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -61,9 +79,43 @@
|
||||
| user | path | string | 예 | — | 대상 user의 식별자 |
|
||||
| shipping_country | body | string | 예 | — | 회원에게 지정할 배송국가 2자리 코드 (활성 배송가능 국가만 허용, 대문자로 정규화) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-ecommerce/admin/users/a234c2b1-cde8-437f-b28b-23323be2b98d/shipping-country HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"shipping_country": "KR"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| preferred_shipping_country | string | `KR` | 변경 후 저장된 회원 선호 배송국가 코드 (2자리 대문자 ISO 국가코드) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "배송국가가 변경되었습니다.",
|
||||
"data": {
|
||||
"preferred_shipping_country": "KR"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
@@ -27,12 +27,46 @@
|
||||
|
||||
_요청 파라미터 없음._
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-ecommerce/wishlist HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "찜 목록을 불러왔습니다.",
|
||||
"data": {
|
||||
"data": [],
|
||||
"pagination": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 0,
|
||||
"from": null,
|
||||
"to": null,
|
||||
"has_more_pages": false
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -58,9 +92,43 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
|
||||
> 이 엔드포인트는 확장이 파라미터를 추가할 수 있습니다 (`sirsoft-ecommerce.wishlist.toggle_validation_rules`).
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-ecommerce/wishlist/toggle HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"product_id": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| added | boolean | `true` | 토글 후 찜 상태 (true 이면 찜 목록에 추가됨 / false 이면 제거됨) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "상품이 찜 목록에 추가되었습니다.",
|
||||
"data": {
|
||||
"added": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -86,10 +154,23 @@ _목록 응답: `data.data[]` 배열 항목의 필드 + `data.pagination`._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-ecommerce/wishlist/{id} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -32,10 +32,43 @@
|
||||
| collection | body | string | 아니오 | max 100 | 첨부 컬렉션 그룹명 (첨부를 용도별로 묶는 키, 미지정 시 default) |
|
||||
| temp_key | body | string | 아니오 | max 64 | 저장 전 임시 귀속 키. 아직 저장되지 않은 페이지의 첨부를 임시로 묶어 두고, 이후 페이지 저장 시 이 키로 확정 귀속합니다 (`page_id` 미지정 시 사용) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-page/admin/attachments HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: multipart/form-data; boundary=----G7ExampleBoundary
|
||||
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="file"; filename="example.pdf"
|
||||
Content-Type: application/octet-stream
|
||||
|
||||
(바이너리 파일 내용)
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="page_id"
|
||||
|
||||
1
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="collection"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary
|
||||
Content-Disposition: form-data; name="temp_key"
|
||||
|
||||
예시값
|
||||
------G7ExampleBoundary--
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -61,10 +94,30 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| order | body | array | 예 | min 1 | 새 정렬 순서 배열. 각 원소는 `{"id": 첨부ID(정수), "order": 순서값(0 이상 정수)}` 형태이며, 이 순서대로 첨부 표시 순위가 갱신됩니다 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-page/admin/attachments/reorder HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"order": [
|
||||
"예시값"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -90,10 +143,23 @@
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| id | path | string | 예 | — | 대상 리소스의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-page/admin/attachments/{id} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
|
||||
@@ -36,6 +36,15 @@
|
||||
| sort_by | query | string | 아니오 | `created_at`, `published_at` | 정렬 기준 필드명 |
|
||||
| sort_order | query | string | 아니오 | `asc`, `desc` | 정렬 방향 (asc 오름차순 / desc 내림차순) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/admin/pages?published=1&search=%EC%98%88%EC%8B%9C%EA%B0%92&search_field=all&filters=%EC%98%88%EC%8B%9C%EA%B0%92&per_page=1&page=1&sort_by=created_at&sort_order=asc HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
@@ -54,6 +63,72 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| is_owner | boolean | `true` | 현재 인증 사용자가 이 리소스의 소유자인지 여부 (BaseApiResource 표준 메타) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "페이지 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"data": [
|
||||
{
|
||||
"id": 10,
|
||||
"slug": "apidoc-sample-page",
|
||||
"title": "API 문서 샘플 페이지",
|
||||
"published": true,
|
||||
"published_at": "2026-07-08 10:51:59",
|
||||
"current_version": 2,
|
||||
"creator": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자"
|
||||
},
|
||||
"created_at": "2026-07-08 10:51:59",
|
||||
"updated_at": "2026-07-08 10:51:59",
|
||||
"is_owner": true,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"slug": "terms",
|
||||
"title": "이용약관",
|
||||
"published": true,
|
||||
"published_at": "2026-07-08 10:44:43",
|
||||
"current_version": 1,
|
||||
"creator": null,
|
||||
"created_at": "2026-07-08 10:44:43",
|
||||
"updated_at": "2026-07-08 10:44:43",
|
||||
"is_owner": false,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
},
|
||||
"... (총 7건 중 2건 표시)"
|
||||
],
|
||||
"meta": {
|
||||
"current_page": 1,
|
||||
"last_page": 1,
|
||||
"per_page": 25,
|
||||
"total": 7
|
||||
},
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -85,10 +160,38 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| seo_meta | body | array | 아니오 | — | SEO 메타 정보 맵. 하위 키 `title`(max 255)·`description`(max 500)·`keywords`(max 500)를 담습니다 |
|
||||
| temp_key | body | string | 아니오 | max 64 | 저장 전 첨부 업로드 시 발급받은 임시 키. 생성된 페이지에 임시 첨부를 귀속시키는 데 사용합니다 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-page/admin/pages HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"slug": "example-key",
|
||||
"title": [
|
||||
"예시 제목"
|
||||
],
|
||||
"content": "예시 내용입니다.",
|
||||
"content_mode": "html",
|
||||
"published": true,
|
||||
"seo_meta": [
|
||||
"예시값"
|
||||
],
|
||||
"temp_key": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -115,10 +218,31 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| ids | body | array | 예 | min 1 | 대상 리소스 식별자 배열 (대량 작업 대상) |
|
||||
| published | body | boolean | 예 | — | 발행 여부 (발행된 항목만 필터) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-page/admin/pages/bulk-publish HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"ids": [
|
||||
"예시값"
|
||||
],
|
||||
"published": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -145,10 +269,29 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| slug | body | string | 예 | max 255 | URL 친화 식별자 (slug) |
|
||||
| exclude_id | body | integer | 아니오 | min 1 | exclude 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-page/admin/pages/check-slug HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"slug": "example-key",
|
||||
"exclude_id": 1
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -174,9 +317,34 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| page | path | string | 예 | — | 조회할 페이지 번호 (1부터 시작) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
DELETE /api/modules/sirsoft-page/admin/pages/10 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
|
||||
<!-- 실측 응답에 필드 없음(빈 목록 등) — 데이터가 있는 상태로 재실측하거나 사람이 작성. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "페이지가 삭제되었습니다.",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -203,6 +371,15 @@ _목록 응답: `data.data[]` 배열 항목의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| page | path | string | 예 | — | 조회할 페이지 번호 (1부터 시작) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/admin/pages/10 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
@@ -226,6 +403,71 @@ _단건 응답: `data` 객체의 필드._
|
||||
| is_owner | boolean | `true` | 현재 인증 사용자가 이 리소스의 소유자인지 여부 (BaseApiResource 표준 메타) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "페이지 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 10,
|
||||
"slug": "apidoc-sample-page",
|
||||
"title": {
|
||||
"ko": "API 문서 샘플 페이지",
|
||||
"en": "API Doc Sample Page"
|
||||
},
|
||||
"content": {
|
||||
"ko": "<p>API 레퍼런스 실측용 완전 샘플 페이지 본문입니다.</p>",
|
||||
"en": "<p>Complete sample page body for API reference probing.</p>"
|
||||
},
|
||||
"content_mode": "html",
|
||||
"published": true,
|
||||
"published_at": "2026-07-08 10:51:59",
|
||||
"seo_meta": {
|
||||
"title": "Dolorum et aut officia ipsam doloribus inventore.",
|
||||
"description": "Sint ipsa impedit enim natus tempore quasi dignissimos praesentium numquam rerum tempore nam.",
|
||||
"keywords": "illo,pariatur,quis,necessitatibus,aperiam"
|
||||
},
|
||||
"current_version": 2,
|
||||
"creator": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자"
|
||||
},
|
||||
"updater": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자"
|
||||
},
|
||||
"attachments": [
|
||||
{
|
||||
"id": 4,
|
||||
"hash": "ninrdtsmhhta",
|
||||
"original_filename": "nesciunt.jpg",
|
||||
"mime_type": "image/jpeg",
|
||||
"size": 7124557,
|
||||
"collection": "attachments",
|
||||
"order": 0,
|
||||
"is_image": true,
|
||||
"download_url": "/api/modules/sirsoft-page/pages/attachment/ninrdtsmhhta",
|
||||
"preview_url": "/api/modules/sirsoft-page/pages/attachment/ninrdtsmhhta/preview",
|
||||
"created_at": "2026-07-08 10:51:59"
|
||||
}
|
||||
],
|
||||
"created_at": "2026-07-08 10:51:59",
|
||||
"updated_at": "2026-07-08 10:51:59",
|
||||
"is_owner": true,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -258,10 +500,38 @@ _단건 응답: `data` 객체의 필드._
|
||||
| seo_meta | body | array | 아니오 | — | SEO 메타 정보 맵. 하위 키 `title`(max 255)·`description`(max 500)·`keywords`(max 500)를 담습니다 |
|
||||
| temp_key | body | string | 아니오 | max 64 | 저장 전 첨부 업로드 시 발급받은 임시 키. 새로 업로드한 첨부를 이 페이지에 귀속시키는 데 사용합니다 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PUT /api/modules/sirsoft-page/admin/pages/10 HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"slug": "example-key",
|
||||
"title": [
|
||||
"예시 제목"
|
||||
],
|
||||
"content": "예시 내용입니다.",
|
||||
"content_mode": "html",
|
||||
"published": true,
|
||||
"seo_meta": [
|
||||
"예시값"
|
||||
],
|
||||
"temp_key": "예시값"
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: http-422 — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -289,9 +559,81 @@ _단건 응답: `data` 객체의 필드._
|
||||
| page | path | string | 예 | — | 조회할 페이지 번호 (1부터 시작) |
|
||||
| published | body | boolean | 예 | — | 발행 여부 (발행된 항목만 필터) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
PATCH /api/modules/sirsoft-page/admin/pages/10/publish HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"published": true
|
||||
}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `10` | 기본 키 (내부 식별자) |
|
||||
| slug | string | `apidoc-sample-page` | URL 친화 식별자 (slug) |
|
||||
| title | object | `{"ko":"API 문서 샘플 페이지","en":"API Doc Sample Page"}` | 제목 |
|
||||
| content | object | `{"ko":"<p>API 레퍼런스 실측용 완전 샘플 페이지 본문입니다.<\/p>","en":"<p>Co…` | 본문 내용 |
|
||||
| content_mode | string | `html` | 본문 형식 (html, text) |
|
||||
| published | boolean | `true` | 발행 여부 (true: 발행, false: 미발행) |
|
||||
| published_at | string | `2026-07-08 15:03:15` | published 일시 |
|
||||
| seo_meta | object | `{"title":"Dolorum et aut officia ipsam doloribus inventor…` | SEO 메타 정보 (title, description, keywords) |
|
||||
| current_version | integer | `2` | 현재 버전 번호 |
|
||||
| created_at | string | `2026-07-08 10:51:59` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 15:03:15` | 최종 수정 일시 |
|
||||
| is_owner | boolean | `true` | 현재 인증 사용자가 이 리소스의 소유자인지 여부 (BaseApiResource 표준 메타) |
|
||||
| abilities | object | `{"can_create":true,"can_update":true,"can_delete":true}` | 현재 사용자가 이 리소스에 수행 가능한 작업 불리언 맵 (can_update, can_delete 등 — 권한 맵 기반) |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "페이지 발행 상태가 변경되었습니다.",
|
||||
"data": {
|
||||
"id": 10,
|
||||
"slug": "apidoc-sample-page",
|
||||
"title": {
|
||||
"ko": "API 문서 샘플 페이지",
|
||||
"en": "API Doc Sample Page"
|
||||
},
|
||||
"content": {
|
||||
"ko": "<p>API 레퍼런스 실측용 완전 샘플 페이지 본문입니다.</p>",
|
||||
"en": "<p>Complete sample page body for API reference probing.</p>"
|
||||
},
|
||||
"content_mode": "html",
|
||||
"published": true,
|
||||
"published_at": "2026-07-08 15:03:15",
|
||||
"seo_meta": {
|
||||
"title": "Dolorum et aut officia ipsam doloribus inventore.",
|
||||
"description": "Sint ipsa impedit enim natus tempore quasi dignissimos praesentium numquam rerum tempore nam.",
|
||||
"keywords": "illo,pariatur,quis,necessitatibus,aperiam"
|
||||
},
|
||||
"current_version": 2,
|
||||
"created_at": "2026-07-08 10:51:59",
|
||||
"updated_at": "2026-07-08 15:03:15",
|
||||
"is_owner": true,
|
||||
"abilities": {
|
||||
"can_create": true,
|
||||
"can_update": true,
|
||||
"can_delete": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
@@ -319,6 +661,15 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| page | path | string | 예 | — | 조회할 페이지 번호 (1부터 시작) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/admin/pages/10/versions HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
@@ -334,6 +685,63 @@ _단건 응답: `data` 객체의 필드._
|
||||
| creator | object | `{"uuid":"a231747f-e82e-4cf2-9ae1-a261849dce40","name":"AP…` | 생성자 정보 객체 (uuid/name/email — creator 관계 파생) |
|
||||
| created_at | string | `2026-07-06 23:57:18` | 생성 일시 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "페이지 정보를 조회했습니다.",
|
||||
"data": [
|
||||
{
|
||||
"id": 14,
|
||||
"page_id": 10,
|
||||
"version": 2,
|
||||
"title": {
|
||||
"ko": "API 문서 샘플 페이지 (v2)",
|
||||
"en": "API Doc Sample Page (v2)"
|
||||
},
|
||||
"content": {
|
||||
"ko": "<p>수정 버전 본문.</p>",
|
||||
"en": "<p>Revised version body.</p>"
|
||||
},
|
||||
"content_mode": "html",
|
||||
"seo_meta": null,
|
||||
"changes_summary": "본문 보강",
|
||||
"creator": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자"
|
||||
},
|
||||
"created_at": "2026-07-08 10:51:59"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"page_id": 10,
|
||||
"version": 1,
|
||||
"title": {
|
||||
"ko": "API 문서 샘플 페이지 (v1)",
|
||||
"en": "API Doc Sample Page (v1)"
|
||||
},
|
||||
"content": {
|
||||
"ko": "<p>초기 버전 본문.</p>",
|
||||
"en": "<p>Initial version body.</p>"
|
||||
},
|
||||
"content_mode": "html",
|
||||
"seo_meta": null,
|
||||
"changes_summary": "최초 작성",
|
||||
"creator": {
|
||||
"uuid": "a234c2b1-cde8-437f-b28b-23323be2b98d",
|
||||
"name": "API 문서 샘플 사용자"
|
||||
},
|
||||
"created_at": "2026-07-08 10:51:59"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -360,10 +768,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| page | path | string | 예 | — | 조회할 페이지 번호 (1부터 시작) |
|
||||
| versionId | path | string | 예 | — | 대상 version의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/admin/pages/10/versions/{versionId} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -390,10 +811,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| page | path | string | 예 | — | 조회할 페이지 번호 (1부터 시작) |
|
||||
| versionId | path | string | 예 | — | 대상 version의 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
POST /api/modules/sirsoft-page/admin/pages/10/versions/{versionId}/restore HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN}
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: write-method — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: side-effectful-write — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -419,10 +853,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| hash | path | string | 예 | — | 대상 리소스의 해시 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/pages/attachment/{hash} HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -446,10 +893,23 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| hash | path | string | 예 | — | 대상 리소스의 해시 식별자 |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/pages/attachment/{hash}/preview HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
|
||||
**응답 예시**
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 예시는 사람이 작성하세요. -->
|
||||
|
||||
**에러 응답**
|
||||
|
||||
| 상태코드 | 의미 | 발생 조건 |
|
||||
@@ -473,9 +933,60 @@ _단건 응답: `data` 객체의 필드._
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| slug | path | string | 예 | — | 대상 리소스의 slug (URL 친화 식별자) |
|
||||
|
||||
**요청 예시**
|
||||
|
||||
```http
|
||||
GET /api/modules/sirsoft-page/pages/terms HTTP/1.1
|
||||
Host: api.example.com
|
||||
Accept: application/json
|
||||
Authorization: Bearer {YOUR_TOKEN} (optional.sanctum: 비회원은 헤더 생략 가능)
|
||||
```
|
||||
|
||||
**응답 필드** (`data` 내부)
|
||||
|
||||
<!-- 실측 제외: unresolved-path-param — 응답 필드는 사람이 작성하세요. -->
|
||||
_단건 응답: `data` 객체의 필드._
|
||||
|
||||
| 필드 | 타입 | 실측 예시값 | 용도/설명 |
|
||||
| --- | --- | --- | --- |
|
||||
| id | integer | `4` | 기본 키 (내부 식별자) |
|
||||
| slug | string | `terms` | URL 친화 식별자 (slug) |
|
||||
| title | string | `이용약관` | 제목 |
|
||||
| content | string | `<h2 style="font-size: 1.25rem; font-w…` | 본문 내용 |
|
||||
| content_mode | string | `html` | 본문 형식 (html, text) |
|
||||
| is_preview | boolean | `false` | preview 여부 |
|
||||
| published_at | string | `2026-07-08 10:44:43` | published 일시 |
|
||||
| seo_meta | null | `null` | SEO 메타 정보 (title, description, keywords) |
|
||||
| current_version | integer | `1` | 현재 버전 번호 |
|
||||
| attachments | array | `[]` | 페이지에 귀속된 첨부파일 목록 (PageAttachmentResource 배열 — id/hash/원본파일명/URL 등, 로드된 경우에만 포함) |
|
||||
| created_at | string | `2026-07-08 10:44:43` | 생성 일시 |
|
||||
| updated_at | string | `2026-07-08 10:44:43` | 최종 수정 일시 |
|
||||
|
||||
**응답 예시**
|
||||
|
||||
```http
|
||||
HTTP/1.1 200
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"message": "페이지 정보를 조회했습니다.",
|
||||
"data": {
|
||||
"id": 4,
|
||||
"slug": "terms",
|
||||
"title": "이용약관",
|
||||
"content": "<h2 style=\"font-size: 1.25rem; font-weight: 700; margin-top: 0; margin-bottom: 1rem;\">제1조 (목적)</h2>\n<p style=\"font-size: 1rem; line-height: 1.75; margin-bottom: 1rem;\">[이용약관의 목적을 입력하세요.]</p>\n\n<h2 style=\"font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem;\">제2조 (정의)</h2>\n<p style=\"font-size: 1rem; line-height: 1.75; margin-bottom: 1rem;\">[주요 용어의 정의를 입력하세요.]</p>\n\n<h2 style=\"font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem;\">제3조 (약관의 효력 및 변경)</h2>\n<p style=\"font-size: 1rem; line-height: 1.75; margin-bottom: 1rem;\">[약관의 효력 및 변경에 관한 내용을 입력하세요.]</p>\n\n<h2 style=\"font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem;\">제4조 (서비스의 제공 및 변경)</h2>\n<p style=\"font-size: 1rem; line-height: 1.75; margin-bottom: 1rem;\">[서비스 제공 및 변경에 관한 내용을 입력하세요.]</p>\n\n<h2 style=\"font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem;\">제5조 (회원의 의무)</h2>\n<p style=\"font-size: 1rem; line-height: 1.75; margin-bottom: 1rem;\">[회원의 의무에 관한 내용을 입력하세요.]</p>",
|
||||
"content_mode": "html",
|
||||
"is_preview": false,
|
||||
"published_at": "2026-07-08 10:44:43",
|
||||
"seo_meta": null,
|
||||
"current_version": 1,
|
||||
"attachments": [],
|
||||
"created_at": "2026-07-08 10:44:43",
|
||||
"updated_at": "2026-07-08 10:44:43"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
**에러 응답**
|
||||
|
||||
|
||||
Reference in new issue
Block a user