Skip to content

Commit 0456429

Browse files
committed
add profile photos
Signed-off-by: Christian Richter <c.richter@opencloud.eu>
1 parent 4ab6fc8 commit 0456429

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

api/openapi-spec/v1.0.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,39 @@ paths:
9191
default:
9292
$ref: '#/components/responses/error'
9393
x-ms-docs-operation-type: operation
94+
/v1.0/me/photo:
95+
get:
96+
tags:
97+
- me.photo
98+
summary: Get the current user's profile photo
99+
operationId: GetOwnUserPhoto
100+
responses:
101+
'200':
102+
description: Retrieved entity
103+
content:
104+
image/png:
105+
schema:
106+
type: string
107+
format: binary
108+
default:
109+
$ref: '#/components/responses/error'
110+
put:
111+
tags:
112+
- me.photo
113+
summary: Update the current user's profile photo
114+
operationId: UpdateOwnUserPhoto
115+
requestBody:
116+
description: New user photo
117+
content:
118+
image/png:
119+
schema:
120+
type: string
121+
format: binary
122+
responses:
123+
'204':
124+
description: Success
125+
default:
126+
$ref: '#/components/responses/error'
94127
'/v1beta1/extensions/org.libregraph/activities':
95128
get:
96129
tags:
@@ -2794,6 +2827,30 @@ paths:
27942827
style: simple
27952828
schema:
27962829
type: string
2830+
'/v1.0/users/{user-id}/photo':
2831+
get:
2832+
tags:
2833+
- user.photo
2834+
summary: Get the photo of a user
2835+
operationId: GetUserPhoto
2836+
parameters:
2837+
- name: user-id
2838+
in: path
2839+
description: 'key: id or name of user'
2840+
required: true
2841+
schema:
2842+
type: string
2843+
x-ms-docs-key-type: user
2844+
responses:
2845+
'200':
2846+
description: Retrieved photo
2847+
content:
2848+
image/jpeg:
2849+
schema:
2850+
type: string
2851+
format: binary
2852+
default:
2853+
$ref: '#/components/responses/error'
27972854
/v1.0/education/users:
27982855
get:
27992856
tags:

0 commit comments

Comments
 (0)