Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karthik-ir/blogger
https://github.com/karthik-ir/blogger
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/karthik-ir/blogger
- Owner: karthik-ir
- Created: 2018-03-03T08:47:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-03T08:49:34.000Z (almost 7 years ago)
- Last Synced: 2024-10-18T15:53:56.939Z (3 months ago)
- Language: Java
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Overview
Built using in memory h2 database on springboot.
JPA/Hibernate as the data access layer.### prerequisites
1. maven 3
2. java 8### APIs
`POST` `/blog`
Use the above api to post a blog with the sample body as below
```
{
"title": "First title",
"paragraphs": "hello world how are \n\n to \n\n you"
}```
`POST` `/comment`Use the above api to post a comment to a paragraph with sample body as below
```
{
"paragraphId":1,
"comment":"Iam the commenter"
}
```To get a brief list of blogs summary with out comments use the below apis,
Pagination details :
use query parameters `page` and `size` to configure the page.Note: `page` starts from `0`
`GET` `/blog``GET` `/blog/{id}`
### Steps to run
1. Build the project using `mvn clean package` skip the tests using `-DskipTests`
2. Run the Project using command `mvn spring-boot:run`.