8000 GitHub - dima-xd/kameleoon-java
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dima-xd/kameleoon-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kameleoon REST API

User endpoints:

Register a new user

POST /api/users/register

RequestBody

{
"name": "name",
"email": "test@example.com",
"password": "password"
}

Quote endpoints:

Create a new quote

POST /api/quotes/create

RequestBody

{
"content": "example content"
}

RequestParam userId - ID of the User who creates a Quote

Update the quote

PUT /api/quotes/update/{quoteId}

RequestBody

{
"content": "updated content"
}

PathVariable quoteId - ID of the Quote

Delete the quote

DELETE /api/quotes/delete/{quoteId}

PathVariable quoteId - ID of the Quote

Get all quotes

GET /api/quotes

Get random quote

GET /api/quotes/random

Get top 10 quotes

GET /api/quotes/top

Get worst 10 quotes

GET /api/quotes/worst

Get specific quote details

GET /api/quotes/{quoteId}

PathVariable quoteId - ID of the Quote

Vote endpoints:

Like the quote

POST /api/vote/{quoteId}/up

PathVariable quoteId - ID of the Quote

Dislike the quote

POST /api/vote/{quoteId}/down

PathVariable quoteId - ID of the Quote

Get the evolution of the votes over time

POST /api/vote/{quoteId}/evolution

PathVariable quoteId - ID of the Quote

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0