A demo project to deploy a nodejs app with testing and azure pipeline.
GET
curl http://localhost/api/courses
...
[{"id":1,"name":"course1"},{"id":2,"name":"course2"},{"id":3,"name":"course3"}]
curl http://localhost/healthz
...
Healthy
POST
curl -X POST http://localhost:/api/courses \
-H 'Content-Type: application/json' \
-d '{"name":"course4"}'
...
{"id":4,"name":"course4"}
PUT
curl -X PUT http://localhost:/api/courses/1 \
-H 'Content-Type: application/json' \
-d '{"name":"course-test"}'
...
{"id":1,"name":"course-test"}
DELETE
curl -X DELETE http://localhost:/api/courses/1
Content type
Image
Digest
Size
53.9 MB
Last updated
over 4 years ago
docker pull aade/nodeapp