Skip to content

Commit 707be12

Browse files
committed
Fix OpenAPI create response status
1 parent f027750 commit 707be12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Endpoint/Create.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function getOpenApiPaths(Collection $collection, JsonApi $api): array
128128
),
129129
],
130130
'responses' => [
131-
'200' => [
131+
'201' => [
132132
'content' => $this->buildOpenApiContent(
133133
array_map(
134134
fn($resource) => ['$ref' => "#/components/schemas/$resource"],

0 commit comments

Comments
 (0)