Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
subi-deployment
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Subi
subi-deployment
Commits
89cb69b0
Commit
89cb69b0
authored
Nov 07, 2021
by
Sakuna Yashara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3rd commit
parent
54b0dbd0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
17 deletions
+16
-17
README.md
README.md
+16
-17
informatzen-architecture.png
informatzen-architecture.png
+0
-0
subi-architecture.jpg
subi-architecture.jpg
+0
-0
No files found.
README.md
View file @
89cb69b0
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
Follwoing figure discussed the architecture of the informatZen platfrom.
Follwoing figure discussed the architecture of the informatZen platfrom.
![
Alt text
](
informatzen-architecture.pn
g?raw=true
"informatZen platfrom architecture"
)
![
Alt text
](
subi-architecture.jp
g?raw=true
"informatZen platfrom architecture"
)
## Services
## Services
...
@@ -48,45 +48,44 @@ gateway service will start a REST api on `7654` port. For an example if your mac
...
@@ -48,45 +48,44 @@ gateway service will start a REST api on `7654` port. For an example if your mac
**
Open
`7654`
and
`4300`
port on VM for public
**
Open
`7654`
and
`4300`
port on VM for public
#### 1. put
Vaccine
#### 1. put
customer details
```
```
# request
# request
curl -XPOST "http://localhost:7654/api/
vaccine
s" \
curl -XPOST "http://localhost:7654/api/
customer
s" \
--header "Content-Type: application/json" \
--header "Content-Type: application/json" \
--header "Bearer: eyJkaWdzaWciOiJORWpYZnIwQjJMZG4ySGxPb2t5blp0dkNzSFVqMGFoVTVZd1F5TmJSVCtOYjlwTnBXcEsvUi9UbDZpanhPVVJiVlJHc2NHaFIrcWVCbkZhK09YYjBmMGlacVh0WHBDVXV6bnJOcTFKRmpGZC8zSU80L1o4SXl3WG1EdWFGcUg5Njc5VE9neVRkcU1nT01VeWNNWTF0bmtIUStWVUtUN0JTV0NWMEM3ZmNXbEE9IiwiaWQiOiJlcmFuZ2FlYkBnbWFpbC5jb20iLCJpc3N1ZVRpbWUiOjE1NTg0ODk4ODksInJvbGVzIjoiIiwidHRsIjo2MH0=" \
--header "Bearer: eyJkaWdzaWciOiJORWpYZnIwQjJMZG4ySGxPb2t5blp0dkNzSFVqMGFoVTVZd1F5TmJSVCtOYjlwTnBXcEsvUi9UbDZpanhPVVJiVlJHc2NHaFIrcWVCbkZhK09YYjBmMGlacVh0WHBDVXV6bnJOcTFKRmpGZC8zSU80L1o4SXl3WG1EdWFGcUg5Njc5VE9neVRkcU1nT01VeWNNWTF0bmtIUStWVUtUN0JTV0NWMEM3ZmNXbEE9IiwiaWQiOiJlcmFuZ2FlYkBnbWFpbC5jb20iLCJpc3N1ZVRpbWUiOjE1NTg0ODk4ODksInJvbGVzIjoiIiwidHRsIjo2MH0=" \
--data '
--data '
{
{
"id": "111110",
"id": "11",
"execer": "admin:admin",
"username": "admin:admin",
"messageType": "addVaccine",
"mobile_no": "addVaccine",
"userMobile": "0715422017",
"email": "0715422017"
"userName": "test user",
"vaccineStatus": "done"
}
}
'
'
# reply
# reply
{"code":201,"msg":"
vaccine
added"}
{"code":201,"msg":"
customer
added"}
```
```
#### 2. get
Vaccine
#### 2. get
customer details
```
```
# request
# request
curl -XPOST "http://localhost:7654/api/
vaccine
s" \
curl -XPOST "http://localhost:7654/api/
customer
s" \
--header "Content-Type: application/json" \
--header "Content-Type: application/json" \
--header "Bearer: eyJkaWdzaWciOiJORWpYZnIwQjJMZG4ySGxPb2t5blp0dkNzSFVqMGFoVTVZd1F5TmJSVCtOYjlwTnBXcEsvUi9UbDZpanhPVVJiVlJHc2NHaFIrcWVCbkZhK09YYjBmMGlacVh0WHBDVXV6bnJOcTFKRmpGZC8zSU80L1o4SXl3WG1EdWFGcUg5Njc5VE9neVRkcU1nT01VeWNNWTF0bmtIUStWVUtUN0JTV0NWMEM3ZmNXbEE9IiwiaWQiOiJlcmFuZ2FlYkBnbWFpbC5jb20iLCJpc3N1ZVRpbWUiOjE1NTg0ODk4ODksInJvbGVzIjoiIiwidHRsIjo2MH0=" \
--header "Bearer: eyJkaWdzaWciOiJORWpYZnIwQjJMZG4ySGxPb2t5blp0dkNzSFVqMGFoVTVZd1F5TmJSVCtOYjlwTnBXcEsvUi9UbDZpanhPVVJiVlJHc2NHaFIrcWVCbkZhK09YYjBmMGlacVh0WHBDVXV6bnJOcTFKRmpGZC8zSU80L1o4SXl3WG1EdWFGcUg5Njc5VE9neVRkcU1nT01VeWNNWTF0bmtIUStWVUtUN0JTV0NWMEM3ZmNXbEE9IiwiaWQiOiJlcmFuZ2FlYkBnbWFpbC5jb20iLCJpc3N1ZVRpbWUiOjE1NTg0ODk4ODksInJvbGVzIjoiIiwidHRsIjo2MH0=" \
--data '
--data '
{
{
"id": "11
11xx
",
"id": "11",
"
execer
": "admin:admin",
"
username
": "admin:admin",
"m
essageType": "get
Vaccine",
"m
obile_no": "add
Vaccine",
"
userMobile": "0715422017",
"
email": "0715422017"
}
}
'
'
# reply
# reply
{"
userMobile":"0775321290","userName":"test user","vaccineStatus": "done", "timestamp":"2021-07-12
20:55:21.308"}
{"
customerMobile":"0771045099","customerName":"test user", "timestamp":"2021-11-05
20:55:21.308"}
```
```
informatzen-architecture.png
deleted
100644 → 0
View file @
54b0dbd0
179 KB
subi-architecture.jpg
0 → 100644
View file @
89cb69b0
24.6 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment