-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit.json
More file actions
1 lines (1 loc) · 2.11 KB
/
submit.json
File metadata and controls
1 lines (1 loc) · 2.11 KB
1
{"openapi":"3.1.0","info":{"title":"Codify Submit API","description":"Codify Submit API 명세서","version":"1.0.0"},"servers":[{"url":"/"}],"paths":{"/api/submit/subjects":{"get":{"tags":["subject-controller"],"operationId":"listSubject","parameters":[{"name":"USER-UUID","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubjectResponseDto"}}}}}}},"post":{"tags":["subject-controller"],"operationId":"createSubject","parameters":[{"name":"USER-UUID","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/SubjectResponseDto"}}}}}}},"/api/submit/subjects/{subjectId}/assignments":{"post":{"tags":["assignment-controller"],"operationId":"createAssignment","parameters":[{"name":"USER-UUID","in":"header","required":true,"schema":{"type":"string"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignmentRequestDto"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/AssignmentResponseDto"}}}}}}}},"components":{"schemas":{"SubjectRequestDto":{"type":"object","properties":{"subjectName":{"type":"string","maxLength":255,"minLength":0}},"required":["subjectName"]},"SubjectResponseDto":{"type":"object","properties":{"subjectId":{"type":"integer","format":"int64"},"subjectName":{"type":"string"}}},"AssignmentRequestDto":{"type":"object","properties":{"assignmentName":{"type":"string","maxLength":255,"minLength":0},"startDate":{"type":"string","format":"date"},"endDate":{"type":"string","format":"date"},"week":{"type":"integer","format":"int64"}},"required":["assignmentName","startDate","week"]},"AssignmentResponseDto":{"type":"object","properties":{"assignmentId":{"type":"integer","format":"int64"}}}}}}