patika-todeb-javaspringbootcamp-proje-odevleri-gozdemogus created by GitHub Classroom
This project is a RESTFUL adaptation of second-hand applications which are very popular in daily life.
- Config
- Controller
- Exception
- Model
- DTO
- Entity
- Enums
- Mapper
- Repository
- Security
- Service
The project contains Spring Security feature. In order to access the endpoints firstly you need to visit the address:
Type | Method |
---|---|
POST | http://localhost:2020/login |
Then login with the following credentials:
{
"username" : "user",
"password" : "123"
}
You are free to reach other endpoints with bearer token.
Some method and body examples:
Type | Method |
---|---|
POST | http://localhost:2020/api/product/create |
{
"brand":"DKNY",
"title":"Chained Bag With Two Pockets",
"details":"Bought 2 months ago, not used. Original.",
"size": "S",
"color": "GREY",
"usage":"UNUSED"
}
Type | Method |
---|---|
POST | http://localhost:2020/api/user/create |
{
"username": "jamesw",
"name":"James",
"surname":"Walker",
"about":"Toy collector, 36 years old",
"email":"jamesw@gmail.com",
"address":"Valwood Pkwy, Michigan, United States",
"phone":"2727900888"
}
Swagger Documentation is available at http://localhost:2020/v3/api-docs