hapijs-note-app-backend
Simple note app backend using hapijs(hapi.dev), like my name huh?
How to run
$ yarn install
$ yarn dev
How to use (Example) cURL
# Adding Note
$ curl -X POST -H "Content-Type: application/json" -d '{
"title": "Makanan sehat tinggi protein",
"tags": ["food","healthy", "diet"],
"body":"Daftar makananan protein tinggi : Telur, Udang, Tuna, Susu"
}' http://localhost:3000/notes -i
# Getting All Notes
$ curl -X GET http://localhost:3000/notes -i
# Getting Specified Note
$ curl -X GET http://localhost:3000/notes/{id} -i
# Edit Note
$ curl -X PUT -H "Content-Type: application/json" -d '{
"title": "Makanan sehat untuk diet",
"tags": ["food","healthy", "diet", "self-awareness"]
}' http://localhost:3000/notes/{id} -i
# Delete Note
$ curl -X DELETE http://localhost:3000/notes/{id} -i
How to use (Example) Postman
- Open Postman
- Import collection
postman-testing/Notes API Test.postman_collection.json
andpostman-testing/Notes Api Test.postman_environment.json
- Run collection Test