Skip to content

Commit 431638d

Browse files
authored
Create readme.md
1 parent 90bec4e commit 431638d

File tree

1 file changed

+39
-0
lines changed
  • 01.basic-microservices-with-webclient

1 file changed

+39
-0
lines changed

Diff for: 01.basic-microservices-with-webclient/readme.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Basic microservices With Web Client
2+
3+
1) Http GET
4+
5+
```
6+
http://localhost:8082/api/address/getById/3
7+
```
8+
9+
Response:
10+
11+
```json
12+
{
13+
"addressId": 3,
14+
"street": "Any street",
15+
"city": "Nagpur"
16+
}
17+
```
18+
----
19+
20+
2) Http Post - create address
21+
22+
```
23+
curl --location --request POST 'http://localhost:8082/api/address/create' \
24+
--header 'Content-Type: application/json' \
25+
--data-raw '{
26+
"street": "Any street",
27+
"city": "Nagpur"
28+
}'
29+
```
30+
31+
Sample Response:
32+
33+
```json
34+
{
35+
"addressId": 3,
36+
"street": "Any street",
37+
"city": "Nagpur"
38+
}
39+
```

0 commit comments

Comments
 (0)