The backend server that powers livecod.
livecod의 백앤드 서버입니다.
- Node.js v10+
git clone https://github.com/LiveCoronaDetector/livecod-backend.git
cd livecod-backend
npm install
npm run dev
API version 1
Prefix all requests with /v1/
.
GET /v1/covid-19/:countryCode/:subdivisionCode?
Param | Explanation |
---|---|
countryCode | ISO 3166-1 alpha 2 country code (2자리 국가 코드) |
subdivisionCode? | Optional ISO 3166-2 subdivision code (영토 구성 단위(시/군/구) 코드) |
POST /v1/covid-19/:countryCode/:subdivisionCode?
Param | Explanation |
---|---|
countryCode | ISO 3166-1 alpha 2 country code (2자리 국가 코드) |
subdivisionCode? | Optional ISO 3166-2 subdivision code (영토 구성 단위(도) 코드) |
Authorization: Bearer <apiKey>
Content-Type: application/x-www-form-urlencoded
infectedCases: req.body.infectedCases,
deadCases: req.body.deadCases,
recoveredCases: req.body.recoveredCases,
timestamp: req.body.timestamp