Sign inSign up

inderjeet5533/curd_demo

By inderjeet5533

•Updated over 2 years ago

Personal Info with curd demo

Image
API management
0

57

inderjeet5533/curd_demo repository overview

⁠Curl requests of all APIs


⁠saveinfo

curl --location 'localhost:8080/saveinfo' \
--header 'Content-Type: application/json' \
--data-raw '{
"firstName": "Inderjeet",
"lastName": "Singh",
"email": "[email protected]",
"contact": "+911111111111",
"address": {
"addressLine1": "sad sd sadasd",
"addressLine2": "asdas asdasd asd",
"city":"teracina",
"state":"Latina",
"country":"Italy",
"pinCode":"49102"
}
}'


⁠getinfo

curl --location 'localhost:8080/getinfo'


⁠updateinfo

curl --location --request PUT 'localhost:8080/updateinfo/2' \
--header 'Content-Type: application/json' \
--data-raw '{
"infoId": 2,
"firstName": "XYZ",
"lastName": "Test",
"email": "[email protected]",
"contact": "+911111111111",
"address": {
"addressLine1": "sad sd sadasd",
"addressLine2": "asdas asdasd asd",
"city":"latina",
"state":"Latina",
"country":"Italy",
"pinCode":"49102"
}
}'


⁠deleteinfo

curl --location --request DELETE 'localhost:8080/deleteinfo/2'

⁠Code of the application present at --> https://github.com/inderjeet5533/CURD_DEMO⁠

⁠React frontend to use those APIs --> https://github.com/inderjeet5533/curd-demo-reactjs⁠

Tag summary

Content type

Image

Digest

sha256:ee583be86…

Size

195 MB

Last updated

over 2 years ago

docker pull inderjeet5533/curd_demo