codestates / codestates/naganda-server

[Backend][Schedule] Best Worst API 구현

Open
#7 0 comments 0 reactions 2 assignees Claimed by @psh0121 View on GitHub
Backend Bare minimum Danbi E:3h SuHyeon
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Suggestion
> [ PATCH ] [ /schedule/bestworst/:scheduleId ]
## Condition
- [x] 토큰 유무 확인
- [x] 스케줄ID로 해당 스케줄 검색
- [x] req 따봉 데이터 받아서 db 업데이트
- [x] 에러 처리

## Description
- **Request** : scheduleId(path parameter), authorization(header), best, worst
- **Response** :
- **200 OK** : Response best, worst count
- **401 Unauthorized** : Response unauthorized
- **500 Internal Server Error** : error

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.