-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
return newly created space in response #2610
Conversation
71dd8ed
to
c4d4efd
Compare
💥 Acceptance tests Core-API-Tests-ocis-storage-4 failed. The build is cancelled... |
Kudos, SonarCloud Quality Gate passed! |
👍 as per the docs:
I think we should aim to be OData compatible, and not use the ms docs as reference? Thoughts @C0rby @butonic I messaged the maintainer of OData regarding taking over maintenance of the library and await for a response :) |
Oh there is more to that sentence:
So if we want to support the full functionality, we need to add some more logic. |
exactly, this is why I brought this up there is more to MSGraph than just their implementation. On the one hand we should focus on OData, but on the other hand we use the msgraph client so it is tied to their implementation of OData, which is pretty flexible. If we use the graph explorer to test the graph API then we are marrying with MSGraph, not OData. |
Description
Added the newly created space in the response for CreateSpace and changed the response code to 201. Before the response was empty and returned a
200 OK
.Requires this Reva change: cs3org/reva#2158
Motivation and Context
This is compatible to what Microsoft is doing in the Graph API:
https://docs.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http#response-1
https://docs.microsoft.com/en-us/graph/api/user-post-calendars?view=graph-rest-1.0&tabs=http#response-1
How Has This Been Tested?
Types of changes
Checklist: