Skip to content

Commit 25394a1

Browse files
authored
Merge pull request #16 from dragonchaser/add-profile-photo
Add profile photo
2 parents 4ab6fc8 + 936669b commit 25394a1

1 file changed

Lines changed: 84 additions & 0 deletions

File tree

api/openapi-spec/v1.0.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,66 @@ paths:
9191
default:
9292
$ref: '#/components/responses/error'
9393
x-ms-docs-operation-type: operation
94+
/v1.0/me/photo/$value:
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 profile photo
103+
content:
104+
image/jpeg:
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: UpdateOwnUserPhotoPut
115+
requestBody:
116+
description: New user photo
117+
content:
118+
image/jpeg:
119+
schema:
120+
type: string
121+
format: binary
122+
responses:
123+
'204':
124+
description: Success
125+
default:
126+
$ref: '#/components/responses/error'
127+
patch:
128+
tags:
129+
- me.photo
130+
summary: Update the current user's profile photo
131+
operationId: UpdateOwnUserPhotoPatch
132+
requestBody:
133+
description: New user photo
134+
content:
135+
image/jpeg:
136+
schema:
137+
type: string
138+
format: binary
139+
responses:
140+
'204':
141+
description: Success
142+
default:
143+
$ref: '#/components/responses/error'
144+
delete:
145+
tags:
146+
- me.photo
147+
summary: Delete the current user's profile photo
148+
operationId: DeleteOwnUserPhoto
149+
responses:
150+
'204':
151+
description: Success
152+
default:
153+
$ref: '#/components/responses/error'
94154
'/v1beta1/extensions/org.libregraph/activities':
95155
get:
96156
tags:
@@ -2794,6 +2854,30 @@ paths:
27942854
style: simple
27952855
schema:
27962856
type: string
2857+
'/v1.0/users/{user-id}/photo/$value':
2858+
get:
2859+
tags:
2860+
- user.photo
2861+
summary: Get the photo of a user
2862+
operationId: GetUserPhoto
2863+
parameters:
2864+
- name: user-id
2865+
in: path
2866+
description: 'key: id or name of user'
2867+
required: true
2868+
schema:
2869+
type: string
2870+
x-ms-docs-key-type: user
2871+
responses:
2872+
'200':
2873+
description: Retrieved photo
2874+
content:
2875+
image/jpeg:
2876+
schema:
2877+
type: string
2878+
format: binary
2879+
default:
2880+
$ref: '#/components/responses/error'
27972881
/v1.0/education/users:
27982882
get:
27992883
tags:

0 commit comments

Comments
 (0)