Skip to content

Commit

Permalink
YAML 파일 테스트값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
yuna83 committed Feb 1, 2025
1 parent d61ea68 commit b148d7a
Showing 1 changed file with 143 additions and 0 deletions.
143 changes: 143 additions & 0 deletions src/main/resources/static/danpat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/AnnouncementRequest"
example:
announcementTitle: "수정된 공지사항 제목"
announcementType: "업데이트"
announcementContent: "공지 내용이 업데이트되었습니다."
required: true
responses:
"200":
Expand All @@ -59,6 +63,12 @@ paths:
'*/*':
schema:
$ref: "#/components/schemas/AnnouncementResponse"
example:
announcementId: 1
announcementTitle: "수정된 공지사항 제목"
announcementType: "업데이트"
announcementContent: "공지 내용이 업데이트되었습니다."
viewCount: 200
delete:
tags:
- announcement-controller
Expand Down Expand Up @@ -184,6 +194,11 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/InquiryRequest"
example:
inquiryType: "일반"
subInquiryType: "서비스 문제"
title: "서비스 관련 문제"
content: "서비스 기능에 문제가 있습니다."
required: true
responses:
"200":
Expand All @@ -192,6 +207,10 @@ paths:
'*/*':
schema:
$ref: "#/components/schemas/InquiryResponse"
example:
inquiry_id: "123"
message: "문의가 성공적으로 접수되었습니다."

/api/v1/support/announcements:
get:
tags:
Expand All @@ -206,6 +225,17 @@ paths:
type: array
items:
$ref: "#/components/schemas/AnnouncementResponse"
example:
- announcementId: 1
announcementTitle: "긴급 서버 점검 공지"
announcementType: "공지"
announcementContent: "서버 점검이 오늘 밤 11시에 진행됩니다."
viewCount: 123
- announcementId: 2
announcementTitle: "새로운 기능 업데이트"
announcementType: "업데이트"
announcementContent: "신규 기능이 추가되었습니다. 확인해보세요!"
viewCount: 89
post:
tags:
- announcement-controller
Expand All @@ -215,6 +245,10 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/AnnouncementRequest"
example:
announcementTitle: "시스템 점검 안내"
announcementType: "공지"
announcementContent: "시스템 점검이 오전 12시부터 오전 4시까지 진행됩니다."
required: true
responses:
"200":
Expand All @@ -223,6 +257,12 @@ paths:
'*/*':
schema:
$ref: "#/components/schemas/AnnouncementResponse"
example:
announcementId: 1
announcementTitle: "시스템 점검 안내"
announcementType: "공지"
announcementContent: "시스템 점검이 오전 12시부터 오전 4시까지 진행됩니다."
viewCount: 0
/api/v1/possible-board:
post:
tags:
Expand Down Expand Up @@ -417,6 +457,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/OfferEmploymentRequest"
example:
employeeId: 1001
businessId: 1
suggestHourlyPay: 10000
suggestStartTime: "2025-01-01T09:00:00"
suggestEndTime: "2025-01-01T18:00:00"
required: true
responses:
"200":
Expand All @@ -425,6 +471,10 @@ paths:
'*/*':
schema:
$ref: "#/components/schemas/OfferEmploymentResponse"
example:
suggestId: 1
success: false
message: "제안 보류 중"
/api/v1/offeremployment/complete:
post:
tags:
Expand All @@ -435,6 +485,9 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/OfferEmploymentCompleteRequest"
example:
suggestId: 1
employeeId: 1001
required: true
responses:
"200":
Expand All @@ -443,6 +496,9 @@ paths:
'*/*':
schema:
type: string
example:
success: true
message: "성공적으로 종료되었습니다."
/api/v1/info/my/reviews/{reviewId}/report:
post:
tags:
Expand All @@ -459,6 +515,8 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/ReviewReportRequest"
example:
reason: "부당하거나 허위 내용이 포함되어 있습니다."
required: true
responses:
"200":
Expand All @@ -467,6 +525,9 @@ paths:
'*/*':
schema:
$ref: "#/components/schemas/ReviewReportResponse"
example:
reportId: 789
message: "리뷰 신고가 성공적으로 접수되었습니다."
/api/v1/contracts/{contractId}/accepts:
post:
tags:
Expand Down Expand Up @@ -701,6 +762,10 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/SearchRequest"
example:
category: "IT"
startTime: "2025-01-01T09:00:00"
endTime: "2025-01-01T18:00:00"
required: true
responses:
"200":
Expand All @@ -711,6 +776,17 @@ paths:
type: array
items:
$ref: "#/components/schemas/SearchResponse"
example:
- name: "John Doe"
sex: "Male"
age: 30
starPoint: 4.5
workCount: 50
- name: "Jane Smith"
sex: "Female"
age: 28
starPoint: 4.8
workCount: 60
/favorites/employees:
get:
tags:
Expand Down Expand Up @@ -800,6 +876,23 @@ paths:
type: array
items:
$ref: "#/components/schemas/InquiryResponse"
example:
- inquiryId: 1
inquiryType: "일반"
subInquiryType: "서비스 문제"
title: "서비스 관련 문제"
content: "서비스 기능에 문제가 발생했습니다."
inquiryStatus: "대기 중"
answerDate: null
createdBy: 123
- inquiryId: 2
inquiryType: "기술"
subInquiryType: "버그 신고"
title: "애플리케이션 버그 신고"
content: "애플리케이션에서 치명적인 버그를 발견했습니다."
inquiryStatus: "답변 완료"
answerDate: "2025-01-20T10:00:00"
createdBy: 123
/api/v1/support/announcements/search:
get:
tags:
Expand All @@ -811,6 +904,7 @@ paths:
required: true
schema:
type: string
example: "점검"
responses:
"200":
description: OK
Expand All @@ -820,6 +914,12 @@ paths:
type: array
items:
$ref: "#/components/schemas/AnnouncementResponse"
example:
- announcementId: 1
announcementTitle: "시스템 점검 안내"
announcementType: "공지"
announcementContent: "시스템이 오전 12시부터 오전 4시까지 점검을 진행합니다."
viewCount: 150
/api/v1/review:
get:
tags:
Expand All @@ -834,6 +934,21 @@ paths:
type: array
items:
$ref: "#/components/schemas/ReviewResponse"
example:
- reviewId: 1
businessName: "테스트 사업장"
businessId: 10
contractStartTime: "2025-01-01T09:00:00"
contractEndTime: "2025-01-01T18:00:00"
reviewStarPoint: 5
reviewContent: "훌륭한 작업이었습니다!"
- reviewId: 2
businessName: "또 다른 사업장"
businessId: 20
contractStartTime: "2025-01-02T09:00:00"
contractEndTime: "2025-01-02T18:00:00"
reviewStarPoint: 4
reviewContent: "좋은 성과를 보여주었습니다."
/api/v1/review/{reviewId}:
get:
tags:
Expand All @@ -849,6 +964,14 @@ paths:
type: array
items:
$ref: "#/components/schemas/ReviewResponse"
example:
- reviewId: 1
businessName: "테스트 사업장"
businessId: 10
contractStartTime: "2025-01-01T09:00:00"
contractEndTime: "2025-01-01T18:00:00"
reviewStarPoint: 5
reviewContent: "훌륭한 작업이었습니다!"
/api/v1/review/my/reviews:
get:
tags:
Expand All @@ -870,6 +993,21 @@ paths:
type: array
items:
$ref: "#/components/schemas/ReviewResponse"
example:
- reviewId: 1
businessName: "테스트 사업장"
businessId: 10
contractStartTime: "2025-01-01T09:00:00"
contractEndTime: "2025-01-01T18:00:00"
reviewStarPoint: 5
reviewContent: "훌륭한 작업이었습니다!"
- reviewId: 2
businessName: "스타트업 컴퍼니"
businessId: 20
contractStartTime: "2025-01-05T10:00:00"
contractEndTime: "2025-01-05T19:00:00"
reviewStarPoint: 4
reviewContent: "업무 진행이 원활했습니다."
/api/v1/review/available:
get:
tags:
Expand All @@ -891,6 +1029,11 @@ paths:
type: array
items:
$ref: "#/components/schemas/ReviewAvailableResponse"
example:
- employeeId: 1001
employeeName: "김철수"
- employeeId: 1002
employeeName: "이영희"
/api/v1/possible-board/internal-career:
get:
tags:
Expand Down

0 comments on commit b148d7a

Please sign in to comment.