|
| 1 | +{ |
| 2 | + "swagger": "2.0", |
| 3 | + "info": { |
| 4 | + "title": "Heroes New Clickchoice API", |
| 5 | + "description": "Heroes 서비스에서 제공하는 NCC 검수이력 조회 api 목록", |
| 6 | + "version": "v1" |
| 7 | + }, |
| 8 | + "host": "", |
| 9 | + "basePath": "/", |
| 10 | + "tags": [ |
| 11 | + { |
| 12 | + "name": "InspectHistory", |
| 13 | + "description": "Inspect History Controller" |
| 14 | + } |
| 15 | + ], |
| 16 | + "paths": { |
| 17 | + "/api/ncc/inspect-history": { |
| 18 | + "post": { |
| 19 | + "tags": [ |
| 20 | + "InspectHistory" |
| 21 | + ], |
| 22 | + "summary": "Inspection history inquiry", |
| 23 | + "description": "여러건의 검수이력을 조회합니다.\nView multiple inspection histories.", |
| 24 | + "operationId": "findByIds", |
| 25 | + "consumes": [ |
| 26 | + "application/json" |
| 27 | + ], |
| 28 | + "produces": [ |
| 29 | + "*/*" |
| 30 | + ], |
| 31 | + "parameters": [ |
| 32 | + { |
| 33 | + "name": "[]", |
| 34 | + "in": "body", |
| 35 | + "description": "조회할 ID 목록\nList of IDs to search\n Example([\"id1\",\"id2\"])", |
| 36 | + "required": true, |
| 37 | + "type": "string" |
| 38 | + } |
| 39 | + ], |
| 40 | + "responses": { |
| 41 | + "400": { |
| 42 | + "description": "잘못된 요청" |
| 43 | + }, |
| 44 | + "200": { |
| 45 | + "description": "조회 성공", |
| 46 | + "schema": { |
| 47 | + "$ref": "#/definitions/InspectCommentResponse" |
| 48 | + } |
| 49 | + }, |
| 50 | + "404": { |
| 51 | + "description": "데이터를 찾을 수 없음", |
| 52 | + "schema": { |
| 53 | + "type": "array", |
| 54 | + "items": { |
| 55 | + "$ref": "#/definitions/InspectCommentResponse" |
| 56 | + } |
| 57 | + } |
| 58 | + } |
| 59 | + } |
| 60 | + } |
| 61 | + }, |
| 62 | + "/api/ncc/inspect-history/{id}": { |
| 63 | + "get": { |
| 64 | + "tags": [ |
| 65 | + "InspectHistory" |
| 66 | + ], |
| 67 | + "summary": "Inspection history single inquiry", |
| 68 | + "description": "특정 ID에 해당하는 검수이력을 조회합니다.\nView the inspection history corresponding to a specific ID.", |
| 69 | + "operationId": "find", |
| 70 | + "produces": [ |
| 71 | + "*/*" |
| 72 | + ], |
| 73 | + "parameters": [ |
| 74 | + { |
| 75 | + "name": "id", |
| 76 | + "in": "path", |
| 77 | + "description": "조회할 ID\nID to search", |
| 78 | + "required": true, |
| 79 | + "type": "string" |
| 80 | + } |
| 81 | + ], |
| 82 | + "responses": { |
| 83 | + "400": { |
| 84 | + "description": "잘못된 요청" |
| 85 | + }, |
| 86 | + "200": { |
| 87 | + "description": "조회 성공", |
| 88 | + "schema": { |
| 89 | + "$ref": "#/definitions/InspectCommentResponse" |
| 90 | + } |
| 91 | + }, |
| 92 | + "404": { |
| 93 | + "description": "데이터를 찾을 수 없음", |
| 94 | + "schema": { |
| 95 | + "$ref": "#/definitions/InspectCommentResponse" |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | + }, |
| 102 | + "definitions": { |
| 103 | + "CommentResponse": { |
| 104 | + "type": "object", |
| 105 | + "properties": { |
| 106 | + "title": { |
| 107 | + "type": "string", |
| 108 | + "description": "title" |
| 109 | + }, |
| 110 | + "comment": { |
| 111 | + "type": "string", |
| 112 | + "description": "comment" |
| 113 | + }, |
| 114 | + "content": { |
| 115 | + "type": "string", |
| 116 | + "description": "content" |
| 117 | + }, |
| 118 | + "faq": { |
| 119 | + "type": "string", |
| 120 | + "description": "faq" |
| 121 | + } |
| 122 | + } |
| 123 | + }, |
| 124 | + "InspectCommentResponse": { |
| 125 | + "type": "object", |
| 126 | + "properties": { |
| 127 | + "id": { |
| 128 | + "type": "string" |
| 129 | + }, |
| 130 | + "pcInspectComments": { |
| 131 | + "type": "array", |
| 132 | + "description": "PC inspection comments", |
| 133 | + "items": { |
| 134 | + "$ref": "#/definitions/CommentResponse" |
| 135 | + } |
| 136 | + }, |
| 137 | + "mobileInspectComments": { |
| 138 | + "type": "array", |
| 139 | + "description": "mobile inspection comments", |
| 140 | + "items": { |
| 141 | + "$ref": "#/definitions/CommentResponse" |
| 142 | + } |
| 143 | + } |
| 144 | + }, |
| 145 | + "required": [ |
| 146 | + "id" |
| 147 | + ] |
| 148 | + } |
| 149 | + } |
| 150 | +} |
0 commit comments