Skip to content

Commit

Permalink
Merge pull request #52 from techorgx/fix-naming-convention
Browse files Browse the repository at this point in the history
Updated README.md
  • Loading branch information
amansinghrajpoot authored Nov 4, 2023
2 parents 29e16b8 + f8132cd commit 5df14c3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ curl \
-H "Content-Type: application/json" \
-H "client-id: test" \
-H "Authorization: Bearer <JWT TOKEN>" \
http://localhost:7979/v1/customerservice/addcustomer \
http://localhost:7979/v1/customer-service/add-customer \
-d '{<DATA>}'
```
```bash
Expand All @@ -85,22 +85,22 @@ curl \
-H "Content-Type: application/json" \
-H "client-id: test" \
-H "Authorization: Bearer <JWT TOKEN>" \
"http://localhost:7979/v1/customerservice/getcustomer?id=johndoe"
"http://localhost:7979/v1/customer-service/get-customer?id=johndoe"
```
```bash
curl \
-X GET \
-H "Content-Type: application/json" \
-H "client-id: test" \
-H "Authorization: Bearer <JWT TOKEN>" \
"http://localhost:7979/v1/customerservice/deletecustomer?id=johndoe"
"http://localhost:7979/v1/customer-service/delete-customer?id=johndoe"
```
```bash
curl \
-X PUT -i \
-H "client-id: test" \
-H "Authorization: Bearer <JWT TOKEN>" \
http://localhost:7979/v1/customerservice/updatecustomer \
http://localhost:7979/v1/customer-service/update-customer \
-d '{<DATA>}'
```
You can bypass Authentication in local environment by sending header "client-id: test"
Expand All @@ -109,29 +109,29 @@ curl \
-X POST -i \
-H "Content-Type: application/json" \
-H "client-id: test" \
http://localhost:7979/v1/customerservice/addcustomer \
http://localhost:7979/v1/customer-service/add-customer \
-d '{<DATA>}'
```
```bash
curl \
-X GET -i \
-H "Content-Type: application/json" \
-H "client-id: test" \
"http://localhost:7979/v1/customerservice/getcustomer?id=johndoe"
"http://localhost:7979/v1/customer-service/get-customer?id=johndoe"
```
```bash
curl \
-X GET -i \
-H "Content-Type: application/json" \
-H "client-id: test" \
"http://localhost:7979/v1/customerservice/deletecustomer?id=johndoe"
"http://localhost:7979/v1/customer-service/delete-customer?id=johndoe"
```
```bash
curl \
-X PUT -i \
-H "Content-Type: application/json" \
-H "client-id: test" \
http://localhost:7979/v1/customerservice/updatecustomer \
http://localhost:7979/v1/customer-service/update-customer \
-d '{<DATA>}'
```
Or send this JWT on local environment
Expand All @@ -140,29 +140,29 @@ curl \
-X POST -i \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2OTc0NTA0NTksImlzcyI6Ind3dy5hY21lLmNvbSIsInN1YiI6ImYxZTMzYWIzLTAyN2YtNDdjNS1iYjA3LThkZDhhYjM3YTJkMyJ9.A2zgvSQ6IK4W0hRnDlPkEMVEMmz6fGGQI-6qzT20PSVS8auoXA7FPA67yK-t-YtXWE2qOsSuzgWWb1TyD0zpS2IZNiJ03augB2zRSYq6cOGVyP5wfllGxJMjc7Bpje6chqOqUetG_2H0I8tnp-qd0GBbShCmK7-ZwV1WXQR6b7fyzSqAxf13TR4gCMiD1A8AnkVJqXlEGJBejhy3ooQ24osxo3QMoWpHFR-8Jr33-9USs8_zesBUdRqEbJLDU_eVBiCDZEOipPHF6o_ZmW1emBQLRc7d24f6W2omi5kzHN4npiOraFkaNeS1QeasOM002GcoHo4ClJslUME_3sEVnw" \
http://localhost:7979/v1/customerservice/addcustomer \
http://localhost:7979/v1/customer-service/add-customer \
-d '{<DATA>}'
```
```bash
curl \
-X GET -i \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2OTc0NTA0NTksImlzcyI6Ind3dy5hY21lLmNvbSIsInN1YiI6ImYxZTMzYWIzLTAyN2YtNDdjNS1iYjA3LThkZDhhYjM3YTJkMyJ9.A2zgvSQ6IK4W0hRnDlPkEMVEMmz6fGGQI-6qzT20PSVS8auoXA7FPA67yK-t-YtXWE2qOsSuzgWWb1TyD0zpS2IZNiJ03augB2zRSYq6cOGVyP5wfllGxJMjc7Bpje6chqOqUetG_2H0I8tnp-qd0GBbShCmK7-ZwV1WXQR6b7fyzSqAxf13TR4gCMiD1A8AnkVJqXlEGJBejhy3ooQ24osxo3QMoWpHFR-8Jr33-9USs8_zesBUdRqEbJLDU_eVBiCDZEOipPHF6o_ZmW1emBQLRc7d24f6W2omi5kzHN4npiOraFkaNeS1QeasOM002GcoHo4ClJslUME_3sEVnw" \
"http://localhost:7979/v1/customerservice/getcustomer?id=johndoe"
"http://localhost:7979/v1/customer-service/get-customer?id=johndoe"
```
```bash
curl \
-X GET -i \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2OTc0NTA0NTksImlzcyI6Ind3dy5hY21lLmNvbSIsInN1YiI6ImYxZTMzYWIzLTAyN2YtNDdjNS1iYjA3LThkZDhhYjM3YTJkMyJ9.A2zgvSQ6IK4W0hRnDlPkEMVEMmz6fGGQI-6qzT20PSVS8auoXA7FPA67yK-t-YtXWE2qOsSuzgWWb1TyD0zpS2IZNiJ03augB2zRSYq6cOGVyP5wfllGxJMjc7Bpje6chqOqUetG_2H0I8tnp-qd0GBbShCmK7-ZwV1WXQR6b7fyzSqAxf13TR4gCMiD1A8AnkVJqXlEGJBejhy3ooQ24osxo3QMoWpHFR-8Jr33-9USs8_zesBUdRqEbJLDU_eVBiCDZEOipPHF6o_ZmW1emBQLRc7d24f6W2omi5kzHN4npiOraFkaNeS1QeasOM002GcoHo4ClJslUME_3sEVnw" \
"http://localhost:7979/v1/customerservice/deletecustomer?id=johndoe"
"http://localhost:7979/v1/customer-service/delete-customer?id=johndoe"
```
```bash
curl \
-X PUT -i \
-H "Content-Type: application/json" \
-H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2OTc0NTA0NTksImlzcyI6Ind3dy5hY21lLmNvbSIsInN1YiI6ImYxZTMzYWIzLTAyN2YtNDdjNS1iYjA3LThkZDhhYjM3YTJkMyJ9.A2zgvSQ6IK4W0hRnDlPkEMVEMmz6fGGQI-6qzT20PSVS8auoXA7FPA67yK-t-YtXWE2qOsSuzgWWb1TyD0zpS2IZNiJ03augB2zRSYq6cOGVyP5wfllGxJMjc7Bpje6chqOqUetG_2H0I8tnp-qd0GBbShCmK7-ZwV1WXQR6b7fyzSqAxf13TR4gCMiD1A8AnkVJqXlEGJBejhy3ooQ24osxo3QMoWpHFR-8Jr33-9USs8_zesBUdRqEbJLDU_eVBiCDZEOipPHF6o_ZmW1emBQLRc7d24f6W2omi5kzHN4npiOraFkaNeS1QeasOM002GcoHo4ClJslUME_3sEVnw" \
http://localhost:7979/v1/customerservice/updatecustomer \
http://localhost:7979/v1/customer-service/update-customer \
-d '{<DATA>}'
```
Sample Data for POST and PUT requests
Expand Down

0 comments on commit 5df14c3

Please sign in to comment.