Closed adriantam closed 2 years ago
Currently, the HTTP status code for a successful is listed as 200 in the swagger file (https://github.com/openfga/api/blob/05fefe3303c7a649313c6ad30c36dfebcfc73f53/docs/openapiv2/apidocs.swagger.json#L82). However, in reality, the openfga server will respond with 201 (https://github.com/openfga/openfga/blob/b808e7eac066c725d535b046b53fae5d58d8bb0f/server/server.go#L337).
We need to update the proto file to reflect the fact that the response code is 201, not 200
Currently, the HTTP status code for a successful is listed as 200 in the swagger file (https://github.com/openfga/api/blob/05fefe3303c7a649313c6ad30c36dfebcfc73f53/docs/openapiv2/apidocs.swagger.json#L82). However, in reality, the openfga server will respond with 201 (https://github.com/openfga/openfga/blob/b808e7eac066c725d535b046b53fae5d58d8bb0f/server/server.go#L337).
We need to update the proto file to reflect the fact that the response code is 201, not 200