- Create user
- Create Tweet
- GET the 5 last Tweets
- GET all user Tweets
To clone the project, run the following command:
git clone https://github.com/NinaS23/Tweteroo_spring-api.git
Then navigate to the project file in ApiApplication.java and:
run the project
Base url
http://localhost:8080
{
"username": "spongeBob",
"avatar": "https://super.abril.com.br/wp-content/uploads/2020/09/04-09_gato_SITE.jpg?quality=70&strip=info"
}
{
"username": "spongeBob",
"tweet": "I love hub"
}
- to get last 5 tweets
http://localhost:8080/tweets?page=1
- to get all user tweets
http://localhost:8080/tweets/spongeBob