· 5 years ago · Mar 26, 2020, 10:40 AM
1/authentication/register POST port 8081
2{login, password}
3rejestrujemy usera
4
5tutaj trzeba token ->
6/products/getByCategoryAndType" POST pobieramy produkty PORT 8081
7{val type: String, val category: String, val page: Int}
8/system/product/add POST dodajemy PORT 8081
9{val name: String, val link: String, val type: String, val category: String, val price: Double}
10
11/system/product/edit edytujemy product o danym ID PORT 8081
12{val name: String = "", val link: String = "", val type: String = "", val category: String = "", val price: Double = 0.0, val id: Long = -1}
13
14JAK ZDOBYC TOKEN:
15/oauth/token 8080
16{login, password} token na kilka dni wiec ez