Skip to content

JakubMajcher/backend-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog backend

Blog backend is tiny project just to practice my dev skills. It's in Java, uses Sprint Boot, Spock and Cucumber. Whole functionality is one rest endpoint to fetch comments from blog. Source of data is https://jsonplaceholder.typicode.com

Run app

To run application use gradle.

./gradlew bootRun

How to use an app

When app is run You can connect to it by HTTP Client. To fetch all comments of second post you can call:

GET localhost:8080/v1/posts/2/comments

If You want to fetch only one of comments You can add parameter:

GET localhost:8080/v1/posts/2/comments?id=6

End2end tests

To run e2e tests use cucumber command.

./gradlew cucumber

Be aware that first You have to run an app.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published