Actions
Issue #3962
closedArtifact 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.
Actions
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