Issue #3962
Artifact create response is not documented
Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 42
Quarter:
Description
The response is not documented for POST '/pulp/api/v3/artifacts'.
As a result the generated client doesn't know how to interpret the response and simply sets it to None.
Associated revisions
Revision 6181cd14
View on GitHub
Problem: drf_yasg does not generate a response schema for Artifact
Solution: provide a custom view inspector for ArtifactViewset
The custom inspector generates responses for multipart form uploads. As a result the generated OpenAPI 2.0 schema has responses for Artifact GET and POST.
History
#1
Updated by dkliban@redhat.com over 2 years ago
- Status changed from NEW to POST
#2
Updated by daviddavis over 2 years ago
- Assignee set to dkliban@redhat.com
- Triaged changed from No to Yes
- Sprint set to Sprint 42
#3
Updated by dkliban@redhat.com over 2 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|6181cd1423c8d8a9211a078c9c9a3ab31f2d0cb1.
#4
Updated by daviddavis almost 2 years ago
- Sprint/Milestone set to 3.0.0
#5
Updated by bmbouter over 1 year ago
- Tags deleted (
Pulp 3, Pulp 3 MVP)
#6
Updated by bmbouter about 1 year ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Please register to edit this issue
Problem: drf_yasg does not generate a response schema for Artifact
Solution: provide a custom view inspector for ArtifactViewset
The custom inspector generates responses for multipart form uploads. As a result the generated OpenAPI 2.0 schema has responses for Artifact GET and POST.
closes: #3962 https://pulp.plan.io/issues/3962