86 lines (67 sloc) 1.69 KB
1 ) Download your project from this link shown below
git clone https://github.com/Eukolos/gateway-keycloak.git
2 ) Go to the project's home directory shown below
cd gateway-keycloak
3 ) Run Keycloak and Databases
docker-compose up
4 ) Run services
cd eureka-server
mvn spring-boot:run
cd product-service
mvn spring-boot:run
cd gateway
mvn spring-boot:run
We can make native image this services thanx to graalvm.
- Core
- Spring
- Spring Boot 3
- Spring Web
- Spring Security
- Oauth 2.0
- Spring
- Keycloak
- MongoDB
- Postgesql
- Docker
- GraalVM CE Java 17-22.3.0
GET /v1/product
Accept: application/HTTP
Content-Type: application/HTTP
User-Agent: Chrome/108.0.0.0
{
"username" : "my_user",
"password" : "password",
}
RESPONSE: HTTP 200 (OK)
Location header: http://localhost:8889/v1/product
POST /v1/product
Accept: application/json
Content-Type: application/json
{
"name" : "ROD",
"price" : 5.0,
"amount" : 2.0,
"oemList" : [
"15j2h15k215kjkjk52",
"21321ewqe321j213as"
]
}
RESPONSE: HTTP 201 (CREATED)
Location header: http://localhost:8889/v1/product
GET /v1/product
Accept: application/json
Content-Type: application/json
{
}
RESPONSE: HTTP 200 (OK)
Content: ProductDto
Location header: http://localhost:8889/v1/product
GET /v1/product/{id}
Accept: application/json
Content-Type: application/json
{
}
RESPONSE: HTTP 200 (OK)
Content: ProductDto
Location header: http://localhost:8889/v1/product/{id}
GET /v1/product/oem/{oem}
Accept: application/json
Content-Type: application/json
{
}
RESPONSE: HTTP 200 (OK)
Content: ProductDto
Location header: http://localhost:8889/v1/product/oem/{oem}
GET /v1/product/{id}
Accept: application/json
Content-Type: application/json
{
}
RESPONSE: HTTP 200 (OK)
Content: boolean
Location header: http://localhost:8889/v1/product/{id}