Skip to content

Commit

Permalink
Rename module-defaults content endpoint
Browse files Browse the repository at this point in the history
For consistency, now
module-defaults -> module_defaults

closes #5680
https://pulp.plan.io/issues/5680
  • Loading branch information
CodeHeeler committed Nov 8, 2019
1 parent 3be7c04 commit df198ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGES/5680.removal
@@ -0,0 +1,5 @@
Rename module-defaults content endpoint for consistency

Endpoints removed -> added:

/pulp/api/v3/content/rpm/modulemd-defaults/ -> /pulp/api/v3/content/rpm/modulemd_defaults/
2 changes: 1 addition & 1 deletion pulp_rpm/app/viewsets.py
Expand Up @@ -321,6 +321,6 @@ class ModulemdDefaultsViewSet(SingleArtifactContentUploadViewSet):
ViewSet for Modulemd.
"""

endpoint_name = 'modulemd-defaults'
endpoint_name = 'modulemd_defaults'
queryset = ModulemdDefaults.objects.all()
serializer_class = ModulemdDefaultsSerializer

0 comments on commit df198ff

Please sign in to comment.