- tutorial, start project from here and import into intellij or eclipse
- There are 3 api endpoints is beed made
/
Test the apicurl -X DELETE http://localhost:8080
/photoz
Get all photocurl -X GET http://localhost:8080/photoz
/photoz/1
Get single photocurl -X GET http://localhost:8080/photoz/1
/photoz/1
delete single photocurl -X DELETE http://localhost:8080/photoz/1
/photoz
create a photocurl -X POST http://localhost:8080/photoz -H 'Content-Type: application/json' -d '{"fileName": "file2.jpg"}'
/photoz
upload a real photo http://localhost:8080/upload.html/download/photoId
Download the uploaded photo http://localhost:8080/download/bf29356-eeb6-4a73-adc7-aae43251a8d9
- Database operations
- http://localhost:8080/h2-console Access database from here db url will be
jdbc:h2:~/Documents/springboot-photoz/data/springboot
- Set no user name and password
- http://localhost:8080/h2-console Access database from here db url will be
https://www.youtube.com/watch?v=lh1oQHXVSc0&list=PLSVW22jAG8pBnhAdq9S8BpLnZ0_jVBj0c