Skip to content

Commit 2345279

Browse files
jpmjpmjpmJean-Pierre Merx
andauthored
Have options example in documenting-your-api.md to return a Response (#7639)
It was returning data which is not correct. Closes #7638. Co-authored-by: Jean-Pierre Merx <[email protected]>
1 parent ef112f5 commit 2345279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/documenting-your-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ You can modify the response behavior to `OPTIONS` requests by overriding the `op
202202
meta = self.metadata_class()
203203
data = meta.determine_metadata(request, self)
204204
data.pop('description')
205-
return data
205+
return Response(data=data, status=status.HTTP_200_OK)
206206

207207
See [the Metadata docs][metadata-docs] for more details.
208208

0 commit comments

Comments
 (0)