Skip to content

Commit b09a826

Browse files
author
dengjun
committed
ci:update profile endpoint
1 parent c220baf commit b09a826

File tree

3 files changed

+37
-134
lines changed

3 files changed

+37
-134
lines changed

docs/postman/Community APP.postman_collection.json

Lines changed: 27 additions & 134 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"info": {
3-
"_postman_id": "cc8d34ce-b72f-4340-a4c1-737f89157b31",
3+
"_postman_id": "95d8a75d-2520-494b-becd-f9f2e8537707",
44
"name": "Community APP",
5-
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
5+
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
66
},
77
"item": [
88
{
@@ -35,16 +35,7 @@
3535
"type": "text"
3636
}
3737
],
38-
"url": {
39-
"raw": "{{URL}}/recruit/profile",
40-
"host": [
41-
"{{URL}}"
42-
],
43-
"path": [
44-
"recruit",
45-
"profile"
46-
]
47-
}
38+
"url": "{{URL}}/recruit/profile"
4839
},
4940
"response": []
5041
},
@@ -72,16 +63,7 @@
7263
"type": "text"
7364
}
7465
],
75-
"url": {
76-
"raw": "{{URL}}/recruit/profile",
77-
"host": [
78-
"{{URL}}"
79-
],
80-
"path": [
81-
"recruit",
82-
"profile"
83-
]
84-
}
66+
"url": "{{URL}}/recruit/profile"
8567
},
8668
"response": []
8769
},
@@ -109,16 +91,7 @@
10991
"type": "text"
11092
}
11193
],
112-
"url": {
113-
"raw": "{{URL}}/recruit/profile",
114-
"host": [
115-
"{{URL}}"
116-
],
117-
"path": [
118-
"recruit",
119-
"profile"
120-
]
121-
}
94+
"url": "{{URL}}/recruit/profile"
12295
},
12396
"response": []
12497
},
@@ -146,16 +119,7 @@
146119
"type": "text"
147120
}
148121
],
149-
"url": {
150-
"raw": "{{URL}}/recruit/profile",
151-
"host": [
152-
"{{URL}}"
153-
],
154-
"path": [
155-
"recruit",
156-
"profile"
157-
]
158-
}
122+
"url": "{{URL}}/recruit/profile"
159123
},
160124
"response": []
161125
},
@@ -183,16 +147,7 @@
183147
"type": "text"
184148
}
185149
],
186-
"url": {
187-
"raw": "{{URL}}/recruit/profile",
188-
"host": [
189-
"{{URL}}"
190-
],
191-
"path": [
192-
"recruit",
193-
"profile"
194-
]
195-
}
150+
"url": "{{URL}}/recruit/profile"
196151
},
197152
"response": []
198153
},
@@ -226,7 +181,7 @@
226181
{
227182
"key": "resume",
228183
"type": "file",
229-
"src": "./docs/postman/resume.txt"
184+
"src": []
230185
},
231186
{
232187
"key": "phone",
@@ -235,21 +190,22 @@
235190
},
236191
{
237192
"key": "availability",
238-
"value": "true",
193+
"value": "false",
194+
"type": "text"
195+
},
196+
{
197+
"key": "city",
198+
"value": "ABC",
199+
"type": "text"
200+
},
201+
{
202+
"key": "countryName",
203+
"value": "India",
239204
"type": "text"
240205
}
241206
]
242207
},
243-
"url": {
244-
"raw": "{{URL}}/recruit/profile",
245-
"host": [
246-
"{{URL}}"
247-
],
248-
"path": [
249-
"recruit",
250-
"profile"
251-
]
252-
}
208+
"url": "{{URL}}/recruit/profile"
253209
},
254210
"response": []
255211
},
@@ -297,16 +253,7 @@
297253
}
298254
]
299255
},
300-
"url": {
301-
"raw": "{{URL}}/recruit/profile",
302-
"host": [
303-
"{{URL}}"
304-
],
305-
"path": [
306-
"recruit",
307-
"profile"
308-
]
309-
}
256+
"url": "{{URL}}/recruit/profile"
310257
},
311258
"response": []
312259
},
@@ -354,16 +301,7 @@
354301
}
355302
]
356303
},
357-
"url": {
358-
"raw": "{{URL}}/recruit/profile",
359-
"host": [
360-
"{{URL}}"
361-
],
362-
"path": [
363-
"recruit",
364-
"profile"
365-
]
366-
}
304+
"url": "{{URL}}/recruit/profile"
367305
},
368306
"response": []
369307
},
@@ -411,16 +349,7 @@
411349
}
412350
]
413351
},
414-
"url": {
415-
"raw": "{{URL}}/recruit/profile",
416-
"host": [
417-
"{{URL}}"
418-
],
419-
"path": [
420-
"recruit",
421-
"profile"
422-
]
423-
}
352+
"url": "{{URL}}/recruit/profile"
424353
},
425354
"response": []
426355
},
@@ -468,16 +397,7 @@
468397
}
469398
]
470399
},
471-
"url": {
472-
"raw": "{{URL}}/recruit/profile",
473-
"host": [
474-
"{{URL}}"
475-
],
476-
"path": [
477-
"recruit",
478-
"profile"
479-
]
480-
}
400+
"url": "{{URL}}/recruit/profile"
481401
},
482402
"response": []
483403
},
@@ -527,16 +447,7 @@
527447
}
528448
]
529449
},
530-
"url": {
531-
"raw": "{{URL}}/recruit/profile",
532-
"host": [
533-
"{{URL}}"
534-
],
535-
"path": [
536-
"recruit",
537-
"profile"
538-
]
539-
}
450+
"url": "{{URL}}/recruit/profile"
540451
},
541452
"response": []
542453
},
@@ -581,16 +492,7 @@
581492
}
582493
]
583494
},
584-
"url": {
585-
"raw": "{{URL}}/recruit/profile",
586-
"host": [
587-
"{{URL}}"
588-
],
589-
"path": [
590-
"recruit",
591-
"profile"
592-
]
593-
}
495+
"url": "{{URL}}/recruit/profile"
594496
},
595497
"response": []
596498
},
@@ -635,16 +537,7 @@
635537
}
636538
]
637539
},
638-
"url": {
639-
"raw": "{{URL}}/recruit/profile",
640-
"host": [
641-
"{{URL}}"
642-
],
643-
"path": [
644-
"recruit",
645-
"profile"
646-
]
647-
}
540+
"url": "{{URL}}/recruit/profile"
648541
},
649542
"response": []
650543
}

docs/swagger.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,19 @@ components:
129129
required:
130130
- phone
131131
- availability
132+
- city
133+
- countryName
132134
properties:
133135
phone:
134136
type: string
135137
description: "The phone number of the user"
136138
example: "(123) 456-7890"
139+
city:
140+
type: string
141+
description: "The member's city"
142+
countryName:
143+
type: string
144+
description: "The member's country"
137145
resume:
138146
type: string
139147
format: binary

src/server/services/recruitCRM.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ function notifyKirilAndNick(error) {
6666
const updateProfileSchema = Joi.object().keys({
6767
phone: Joi.string().required(),
6868
availability: Joi.boolean().required(),
69+
city: Joi.string().required(),
70+
countryName: Joi.string().required(),
6971
}).required();
7072

7173
/**

0 commit comments

Comments
 (0)