Project

Profile

Help

Refactor #3597

closed

Use a serializer to validate sync and publish parameters

Added by amacdona@redhat.com almost 6 years ago. Updated about 3 years ago.

Status:
MODIFIED
Priority:
Normal
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
3.0.0
Target Release - Python:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

To be included in the schema (autodoc and bindings), we need to create a serializer for sync and publish

https://github.com/pulp/pulp_file/blob/master/pulp_file/app/viewsets.py#L32-L52

This serializer should use HyperlinkedRelatedFields to validate that the repository and repository version exist.


Related issues

Related to Python Support - Issue #3596: Remove sync_mode and download_policy from docsMODIFIEDdalleyActions

Also available in: Atom PDF