Skip to content

Wagan8r/simple-note-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-note-service

To run the service, first clone from GitHub:

git clone https://github.com/Wagan8r/simple-note-service.git

Then navigate into the directory:

cd simple-note-service

Start the service on Windows with:

gradlew bootRun

or on macOS or Linux with:

./gradlew bootRun

you may have to do:

chmod 777 gradlew

and:

sudo ./gradlew bootRun

The service is started at:

http://localhost:80

To use the service, submit requests via curl like below:

curl -i -H "Content-Type: application/json" -X POST -d '{"body" : "Pick up milk!"}' http://localhost/api/notes
curl -i -H "Content-Type: application/json" -X GET http://localhost/api/notes/1
curl -i -H "Content-Type: application/json" -X GET http://localhost/api/notes
curl -i -H "Content-Type: application/json" -X GET http://localhost/api/notes?query=milk

Enjoy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages