Skip to content

Commit d15b0cb

Browse files
author
Krystle Salazar
committed
Update image docs
1 parent c805e21 commit d15b0cb

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

api/api/docs/image_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
image_oembed_404_example,
2525
image_oembed_curl,
2626
image_related_200_example,
27-
image_related_404_example,
2827
image_related_curl,
2928
image_search_200_example,
3029
image_search_400_example,
@@ -109,7 +108,7 @@
109108
res={
110109
200: (ImageSerializer(many=True), image_related_200_example["results"][0]),
111110
401: (AuthenticationFailed, None),
112-
404: (NotFound, image_related_404_example),
111+
404: (NotFound, None),
113112
},
114113
eg=[image_related_curl],
115114
)
@@ -119,6 +118,7 @@
119118
201: (ImageReportRequestSerializer, image_complain_201_example),
120119
401: (AuthenticationFailed, None),
121120
400: (ValidationError, None),
121+
404: (NotFound, None),
122122
},
123123
eg=[image_complain_curl],
124124
)

api/api/examples/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
image_oembed_200_example,
3636
image_oembed_404_example,
3737
image_related_200_example,
38-
image_related_404_example,
3938
image_search_200_example,
4039
image_search_400_example,
4140
image_stats_200_example,

api/api/examples/image_responses.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@
121121
],
122122
}
123123

124-
image_related_404_example = {"detail": "An internal server error occurred."}
125-
126124
image_oembed_200_example = {
127125
"version": "1.0",
128126
"type": "photo",

0 commit comments

Comments
 (0)