personal project
- linux
- intellij
- java 17
- gradle
- spring data
- spring web
- lombok
- postgresql
- zxing
- openapi
- swagger
clone the project:
git clone [email protected]:bianavic/qrcode-generator.git
open this project in your preferred IDE
navigate to application directory
cd qrcode-generator
build application
./gradlew build
run the application
sudo docker-compose up
stop the application
sudo docker-compose down
http://localhost:6060/swagger-ui/index.html
while project is up
1- make a post-request with your Wi-Fi name and password
2- make a get-request: it will generate the qrcode png file at resources directory
API ROUTE | DESCRIPTION | STATUS |
---|---|---|
[POST] v1/wifi | Add a new wifi | 200 |
[GET] v1/wifi/{id} | Retrieve wifi by ID | 200 |
[GET] v1/wifi | Retrieve all registered wifis | 200 |
curl --location 'http://localhost:9090/v1/wifi' \
--header 'Content-Type: application/json' \
--data '{
"wifiName": "test",
"wifiPassword": "test123"
}'
{"id":1,"wifiName":"test","wifiPassword":"test123"}
curl --location 'http://localhost:9090/v1/wifi' \
--data ''
[
{
"id": 1,
"wifiName": "test",
"wifiPassword": "test123"
}
]
curl --location 'http://localhost:9090/v1/wifi/1' \
--data ''
{
"id": 1,
"wifiName": "test",
"wifiPassword": "test123"
}