-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.json
More file actions
1 lines (1 loc) · 3.15 KB
/
dashboard.json
File metadata and controls
1 lines (1 loc) · 3.15 KB
1
{"openapi":"3.1.0","info":{"title":"Codify Dashboard API","description":"Codify Dashboard API 명세서","version":"1.0.0"},"servers":[{"url":"https://codify-test.duckdns.org"}],"paths":{"/api/dashboard/record":{"get":{"tags":["dashboard-controller"],"operationId":"getWeekAccumulate","parameters":[{"name":"USER-UUID","in":"header","required":true,"schema":{"type":"string"}},{"name":"subjectId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DashboardWeekResponseDto"}}}}}}},"/api/dashboard/main":{"get":{"tags":["dashboard-controller"],"operationId":"getDashboardData","parameters":[{"name":"USER-UUID","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DashboardDataDto"}}}}}}},"/api/dashboard/accumulate":{"get":{"tags":["dashboard-controller"],"operationId":"getAccumulate","parameters":[{"name":"USER-UUID","in":"header","required":true,"schema":{"type":"string"}},{"name":"subjectId","in":"query","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/DashboardAllResponseDto"}}}}}}}},"components":{"schemas":{"AccumulateWeekResponseDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"integer","format":"int64"},"to":{"type":"integer","format":"int64"},"submittedFrom":{"type":"string","format":"date-time"},"submittedTo":{"type":"string","format":"date-time"},"value":{"type":"number","format":"double"},"width":{"type":"number","format":"double"}}},"DashboardWeekResponseDto":{"type":"object","properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/StudentResponseDto"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/WeekDataDto"}}}},"StudentResponseDto":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"label":{"type":"string"}}},"WeekDataDto":{"type":"object","properties":{"week":{"type":"integer","format":"int64"},"data":{"type":"array","items":{"$ref":"#/components/schemas/AccumulateWeekResponseDto"}}}},"DashboardDataDto":{"type":"object","properties":{"user":{"$ref":"#/components/schemas/UserDataDto"},"testCount":{"type":"integer","format":"int32"},"subjects":{"type":"array","items":{"$ref":"#/components/schemas/SubjectDataDto"}}}},"SubjectDataDto":{"type":"object","properties":{"subjectId":{"type":"integer","format":"int64"},"subjectName":{"type":"string"}}},"UserDataDto":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"}}},"AccumulateResponseDto":{"type":"object","properties":{"id":{"type":"string"},"from":{"type":"integer","format":"int64"},"to":{"type":"integer","format":"int64"},"count":{"type":"integer","format":"int32"},"value":{"type":"number","format":"double"},"width":{"type":"number","format":"double"}}},"DashboardAllResponseDto":{"type":"object","properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/StudentResponseDto"}},"edges":{"type":"array","items":{"$ref":"#/components/schemas/AccumulateResponseDto"}}}}}}}