Skip to content

Commit 5391ab0

Browse files
authored
feat: add profile information (#621)
* add username validator * add login for username and email in one field * add social links and biography to user profile * return users details able to get users by username * fix failing tests
1 parent 2a9391c commit 5391ab0

File tree

15 files changed

+1195
-146
lines changed

15 files changed

+1195
-146
lines changed

api_docs.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ paths:
1717
required:
1818
- email
1919
- name
20+
- username
2021
- password
2122
- organisation
2223
properties:
2324
email:
2425
type: string
2526
name:
2627
type: string
28+
username:
29+
type: string
2730
password:
2831
type: string
2932
organisation:
@@ -188,6 +191,7 @@ paths:
188191
description: "Bearer [token]"
189192
- in: path
190193
name: user_id
194+
description: "User ID or username"
191195
required: true
192196
type: string
193197

@@ -229,6 +233,14 @@ paths:
229233
type: boolean
230234
organisation:
231235
type: string
236+
biography:
237+
type: string
238+
social_links:
239+
type: object
240+
profile_picture:
241+
type: string
242+
username:
243+
type: string
232244
responses:
233245
200:
234246
description: "Success"

0 commit comments

Comments
 (0)