|
| 1 | +== 상품 (Product) API |
| 2 | + |
| 3 | +=== 1. 상품 등록 API |
| 4 | +`POST /products` |
| 5 | + |
| 6 | +요청 본문: |
| 7 | +include::{snippets}/product-create/request-fields.adoc[] |
| 8 | + |
| 9 | +응답 본문: |
| 10 | +include::{snippets}/product-create/response-fields.adoc[] |
| 11 | + |
| 12 | +응답: |
| 13 | +include::{snippets}/product-create/http-response.adoc[] |
| 14 | + |
| 15 | +=== 2. 상품 수정 API |
| 16 | +`PATCH /products/{productId}` |
| 17 | + |
| 18 | +경로 변수: |
| 19 | +include::{snippets}/product-update/path-parameters.adoc[] |
| 20 | + |
| 21 | +요청 본문: |
| 22 | +include::{snippets}/product-update/request-fields.adoc[] |
| 23 | + |
| 24 | +응답 본문: |
| 25 | +include::{snippets}/product-update/response-fields.adoc[] |
| 26 | + |
| 27 | +응답: |
| 28 | +include::{snippets}/product-update/http-response.adoc[] |
| 29 | + |
| 30 | +=== 3. 상품 공개 상태 변경 API |
| 31 | +`PATCH /products/{productId}/public` |
| 32 | + |
| 33 | +경로 변수: |
| 34 | +include::{snippets}/product-public-update/path-parameters.adoc[] |
| 35 | + |
| 36 | +요청 본문: |
| 37 | +include::{snippets}/product-public-update/request-fields.adoc[] |
| 38 | + |
| 39 | +응답 본문: |
| 40 | +include::{snippets}/product-public-update/response-fields.adoc[] |
| 41 | + |
| 42 | +응답: |
| 43 | +include::{snippets}/product-public-update/http-response.adoc[] |
| 44 | + |
| 45 | +=== 4. 상품 카테고리 변경 API |
| 46 | +`PATCH /products/{productId}/categories` |
| 47 | + |
| 48 | +경로 변수: |
| 49 | +include::{snippets}/product-category-update/path-parameters.adoc[] |
| 50 | + |
| 51 | +요청 본문: |
| 52 | +include::{snippets}/product-category-update/request-fields.adoc[] |
| 53 | + |
| 54 | +응답 본문: |
| 55 | +include::{snippets}/product-category-update/response-fields.adoc[] |
| 56 | + |
| 57 | +응답: |
| 58 | +include::{snippets}/product-category-update/http-response.adoc[] |
| 59 | + |
| 60 | +=== 5. 상품 목록 조회 API |
| 61 | +`GET /products` |
| 62 | + |
| 63 | +요청 파라미터: |
| 64 | +include::{snippets}/product-list/query-parameters.adoc[] |
| 65 | + |
| 66 | +응답 본문: |
| 67 | +include::{snippets}/product-list/response-fields.adoc[] |
| 68 | + |
| 69 | +응답: |
| 70 | +include::{snippets}/product-list/http-response.adoc[] |
| 71 | + |
| 72 | +=== 6. 상품 상세 조회 API |
| 73 | +`GET /products/{productId}` |
| 74 | + |
| 75 | +경로 변수: |
| 76 | +include::{snippets}/product-detail/path-parameters.adoc[] |
| 77 | + |
| 78 | +응답 본문: |
| 79 | +include::{snippets}/product-detail/response-fields.adoc[] |
| 80 | + |
| 81 | +include::{snippets}/product-detail/http-response.adoc[] |
| 82 | + |
| 83 | +=== 7. 상품 삭제 API |
| 84 | +`DELETE /products/{productId}` |
| 85 | + |
| 86 | +경로 변수: |
| 87 | +include::{snippets}/product-delete/path-parameters.adoc[] |
| 88 | + |
| 89 | +응답: |
| 90 | +include::{snippets}/product-delete/http-response.adoc[] |
| 91 | + |
| 92 | +=== 8. 상품 옵션 그룹 생성 API |
| 93 | +`POST /products/{productId}/options` |
| 94 | + |
| 95 | +경로 변수: |
| 96 | +include::{snippets}/product-option-group-create/path-parameters.adoc[] |
| 97 | + |
| 98 | +요청 본문: |
| 99 | +include::{snippets}/product-option-group-create/request-fields.adoc[] |
| 100 | + |
| 101 | +응답: |
| 102 | +include::{snippets}/product-option-group-create/http-response.adoc[] |
| 103 | + |
| 104 | +=== 9. 상품 옵션 그룹 수정 API |
| 105 | +`PATCH /products/options/{optionGroupId}` |
| 106 | + |
| 107 | +경로 변수: |
| 108 | +include::{snippets}/product-option-group-update/path-parameters.adoc[] |
| 109 | + |
| 110 | +요청 본문: |
| 111 | +include::{snippets}/product-option-group-update/request-fields.adoc[] |
| 112 | + |
| 113 | +응답 본문: |
| 114 | +include::{snippets}/product-option-group-update/response-fields.adoc[] |
| 115 | + |
| 116 | +응답: |
| 117 | +include::{snippets}/product-option-group-update/http-response.adoc[] |
| 118 | + |
| 119 | +=== 10. 상품 옵션 그룹 삭제 API |
| 120 | +`DELETE /products/options/{optionGroupId}` |
| 121 | + |
| 122 | +경로 변수: |
| 123 | +include::{snippets}/product-option-group-delete/path-parameters.adoc[] |
| 124 | + |
| 125 | +응답: |
| 126 | +include::{snippets}/product-option-group-delete/http-response.adoc[] |
| 127 | + |
| 128 | +=== 11. 상품 옵션 값 생성 API |
| 129 | +`POST /products/options/{optionGroupId}/values` |
| 130 | + |
| 131 | +경로 변수: |
| 132 | +include::{snippets}/product-option-value-create/path-parameters.adoc[] |
| 133 | + |
| 134 | +요청 본문: |
| 135 | +include::{snippets}/product-option-value-create/request-fields.adoc[] |
| 136 | + |
| 137 | +응답: |
| 138 | +include::{snippets}/product-option-value-create/http-response.adoc[] |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | +=== 12. 상품 옵션 값 수정 API |
| 143 | +`PATCH /products/options/values/{optionValueId}` |
| 144 | + |
| 145 | +경로 변수: |
| 146 | +include::{snippets}/product-option-value-update/path-parameters.adoc[] |
| 147 | + |
| 148 | +요청 본문: |
| 149 | +include::{snippets}/product-option-value-update/request-fields.adoc[] |
| 150 | + |
| 151 | +응답 본문: |
| 152 | +include::{snippets}/product-option-value-update/response-fields.adoc[] |
| 153 | + |
| 154 | +응답: |
| 155 | +include::{snippets}/product-option-value-update/http-response.adoc[] |
| 156 | + |
| 157 | +=== 13. 상품 옵션 값 삭제 API |
| 158 | +`DELETE /products/options/values/{optionValueId}` |
| 159 | + |
| 160 | +경로 변수: |
| 161 | +include::{snippets}/product-option-value-delete/path-parameters.adoc[] |
| 162 | + |
| 163 | +응답: |
| 164 | +include::{snippets}/product-option-value-delete/http-response.adoc[] |
0 commit comments