Simple Java Spring REST API to test OAuth2
shopDump.sql
application.properties
in resources accordingly to your database settingsmvn clean install spring-boot:repackage
java -jar shopAPI.jar
admin:abc123
Authorization: Basic dHJ1c3RlZDphYmMxMjM=
or trusted:secret login/password combination
oauth_client_details
tableaccess_token=c15de2f5-d7ec-4948-82ac-07ba2d1fb27d
POST oauth/token?grant_type=password&username=admin&password=abc123
POST oauth/token?grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>
POST /api/shop/cart/{cartId}/add/{productId}
POST /api/shop/cart/customer/{customerId}
POST /api/shop/customer/{id}/order
GET /api/shop/orders
POST /api/shop/customers/{name}
GET /api/shop/products
GET /api/shop/products/{id}
POST /api/shop/products
PUT /api/shop/products/{id}
DELETE /api/shop/products/{id}