@@ -39,14 +39,6 @@ definitions:
39
39
password :
40
40
minLength : 8
41
41
type : string
42
- provider :
43
- type : string
44
- provider_id :
45
- type : string
46
- web_auth_token :
47
- type : string
48
- required :
49
- - web_auth_token
50
42
type : object
51
43
request.LogoutRequest :
52
44
properties :
@@ -66,13 +58,22 @@ definitions:
66
58
type : string
67
59
country :
68
60
type : string
61
+ date_of_birth :
62
+ type : string
63
+ gender :
64
+ type : string
65
+ nationality :
66
+ type : string
67
+ phone_number :
68
+ type : string
69
69
postal_code :
70
70
type : string
71
71
user_address :
72
72
type : string
73
73
required :
74
74
- city
75
75
- country
76
+ - nationality
76
77
- postal_code
77
78
- user_address
78
79
type : object
@@ -98,8 +99,25 @@ definitions:
98
99
- company_description
99
100
- company_name
100
101
type : object
102
+ request.RegisterPersonalDetailsRequest :
103
+ properties :
104
+ date_of_birth :
105
+ type : string
106
+ gender :
107
+ type : string
108
+ nationality :
109
+ type : string
110
+ personal_account_type :
111
+ type : string
112
+ phone_number :
113
+ type : string
114
+ required :
115
+ - nationality
116
+ type : object
101
117
request.RegisterUserRequest :
102
118
properties :
119
+ account_type :
120
+ type : string
103
121
email :
104
122
type : string
105
123
first_name :
@@ -111,8 +129,6 @@ definitions:
111
129
type : string
112
130
provider :
113
131
type : string
114
- provider_id :
115
- type : string
116
132
web_auth_token :
117
133
type : string
118
134
required :
@@ -125,29 +141,6 @@ definitions:
125
141
required :
126
142
- session_id
127
143
type : object
128
- request.UpdateProfileRequest :
129
- properties :
130
- company_website :
131
- type : string
132
- employment_type :
133
- type : string
134
- first_name :
135
- type : string
136
- gender :
137
- type : string
138
- job_role :
139
- type : string
140
- last_name :
141
- type : string
142
- nationality :
143
- type : string
144
- residential_country :
145
- type : string
146
- required :
147
- - first_name
148
- - last_name
149
- - nationality
150
- type : object
151
144
request.VerifyMFARequest :
152
145
properties :
153
146
code :
@@ -486,42 +479,6 @@ paths:
486
479
summary : Logout
487
480
tags :
488
481
- authentication
489
- /auth/profile/address :
490
- put :
491
- consumes :
492
- - application/json
493
- description : Update address details for a registered user
494
- parameters :
495
- - description : Address details
496
- in : body
497
- name : addressDetails
498
- required : true
499
- schema :
500
- $ref : ' #/definitions/request.RegisterAddressDetailsRequest'
501
- produces :
502
- - application/json
503
- responses :
504
- " 200 " :
505
- description : Address details updated successfully
506
- schema :
507
- $ref : ' #/definitions/response.SuccessResponse'
508
- " 400 " :
509
- description : Invalid request
510
- schema :
511
- $ref : ' #/definitions/response.ErrorResponse'
512
- " 401 " :
513
- description : Unauthorized
514
- schema :
515
- $ref : ' #/definitions/response.ErrorResponse'
516
- " 500 " :
517
- description : Internal server error
518
- schema :
519
- $ref : ' #/definitions/response.ErrorResponse'
520
- security :
521
- - Bearer : []
522
- summary : Update address details
523
- tags :
524
- - profile
525
482
/auth/profile/business :
526
483
put :
527
484
consumes :
@@ -586,6 +543,42 @@ paths:
586
543
summary : Get profile completion status
587
544
tags :
588
545
- profile
546
+ /auth/profile/personal-details :
547
+ put :
548
+ consumes :
549
+ - application/json
550
+ description : Update personal details for a registered user
551
+ parameters :
552
+ - description : Personal details
553
+ in : body
554
+ name : personalDetails
555
+ required : true
556
+ schema :
557
+ $ref : ' #/definitions/request.RegisterPersonalDetailsRequest'
558
+ produces :
559
+ - application/json
560
+ responses :
561
+ " 200 " :
562
+ description : Personal details updated successfully
563
+ schema :
564
+ $ref : ' #/definitions/response.SuccessResponse'
565
+ " 400 " :
566
+ description : Invalid request
567
+ schema :
568
+ $ref : ' #/definitions/response.ErrorResponse'
569
+ " 401 " :
570
+ description : Unauthorized
571
+ schema :
572
+ $ref : ' #/definitions/response.ErrorResponse'
573
+ " 500 " :
574
+ description : Internal server error
575
+ schema :
576
+ $ref : ' #/definitions/response.ErrorResponse'
577
+ security :
578
+ - Bearer : []
579
+ summary : Update personal details
580
+ tags :
581
+ - profile
589
582
/auth/refresh :
590
583
post :
591
584
consumes :
@@ -977,56 +970,61 @@ paths:
977
970
summary : Change user password
978
971
tags :
979
972
- users
980
- /users/profile :
981
- get :
973
+ /users/employee/ profile/complete :
974
+ put :
982
975
consumes :
983
976
- application/json
984
- description : Retrieve authenticated user's profile
977
+ description : Update address details for a registered user
978
+ parameters :
979
+ - description : Address details
980
+ in : body
981
+ name : addressDetails
982
+ required : true
983
+ schema :
984
+ $ref : ' #/definitions/request.RegisterAddressDetailsRequest'
985
985
produces :
986
986
- application/json
987
987
responses :
988
988
" 200 " :
989
- description : User profile
989
+ description : Address details updated successfully
990
990
schema :
991
- $ref : ' #/definitions/response.UserResponse'
991
+ $ref : ' #/definitions/response.SuccessResponse'
992
+ " 400 " :
993
+ description : Invalid request
994
+ schema :
995
+ $ref : ' #/definitions/response.ErrorResponse'
992
996
" 401 " :
993
997
description : Unauthorized
994
998
schema :
995
999
$ref : ' #/definitions/response.ErrorResponse'
1000
+ " 500 " :
1001
+ description : Internal server error
1002
+ schema :
1003
+ $ref : ' #/definitions/response.ErrorResponse'
996
1004
security :
997
- - BearerAuth : []
998
- summary : Get user profile
1005
+ - Bearer : []
1006
+ summary : Update address details
999
1007
tags :
1000
- - users
1001
- put :
1008
+ - profile
1009
+ /users/profile :
1010
+ get :
1002
1011
consumes :
1003
1012
- application/json
1004
- description : Update authenticated user's profile information
1005
- parameters :
1006
- - description : Profile data to update
1007
- in : body
1008
- name : profile
1009
- required : true
1010
- schema :
1011
- $ref : ' #/definitions/request.UpdateProfileRequest'
1013
+ description : Retrieve authenticated user's profile
1012
1014
produces :
1013
1015
- application/json
1014
1016
responses :
1015
1017
" 200 " :
1016
- description : Updated user profile
1018
+ description : User profile
1017
1019
schema :
1018
1020
$ref : ' #/definitions/response.UserResponse'
1019
- " 400 " :
1020
- description : Invalid request
1021
- schema :
1022
- $ref : ' #/definitions/response.ErrorResponse'
1023
1021
" 401 " :
1024
1022
description : Unauthorized
1025
1023
schema :
1026
1024
$ref : ' #/definitions/response.ErrorResponse'
1027
1025
security :
1028
1026
- BearerAuth : []
1029
- summary : Update user profile
1027
+ summary : Get user profile
1030
1028
tags :
1031
1029
- users
1032
1030
/waitlist :
0 commit comments