Skip to content

Commit

Permalink
feat: add GET endpoint to v1 plugin parameter types controller
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrapnell-nist authored and keithmanville committed Mar 29, 2024
1 parent e4938e1 commit a886786
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/dioptra/restapi/v1/plugin_parameter_types/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,18 @@ def post(self):
@api.route("/<int:id>")
@api.param("id", "ID for the PluginParameterType resource.")
class PluginParameterTypeIdEndpoint(Resource):
@login_required
@responds(schema=PluginParameterTypeSchema, api=api)
def get(self, id: int):
"""Gets a PluginParameterType resource."""
log = LOGGER.new(
request_id=str(uuid.uuid4()),
resource="PluginParameterType",
request_type="GET",
id=id,
)
log.debug("Request received")

@login_required
@responds(schema=IdStatusResponseSchema, api=api)
def delete(self, id: int):
Expand Down

0 comments on commit a886786

Please sign in to comment.