CIA Frontend App과 호환되는 Restful 백엔드 API
스펙문서
yarn install
yarn start
localhost:3000에서 실행
CIAPI
├── LICENSE
├── ormconfig.json
├── package.json
├── README.md
├── src
│ ├── app.ts
│ ├── controllers
│ │ └── users.ts
│ ├── entities
│ │ └── users.ts
│ └── route.ts
├── tsconfig.json
├── tslint.json
└── yarn.lock
$ curl -XPOST 'http://localhost:3000/users' -d '{
"firstname": "CIA Developer Group!"
}'
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 24
Content-Type: application/json; charset=utf-8
Date: Thu, 02 Nov 2017 10:27:00 GMT
{
"firstname": "CIA Developer Group!",
"id": 1
}
$ curl -XGET 'http://localhost:3000/users'
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 26
Content-Type: application/json; charset=utf-8
Date: Thu, 02 Nov 2017 10:27:03 GMT
[
{
"firstname": "CIA Developer Group!",
"id": 1
}
]