Skip to content
Snippets Groups Projects
Commit b54e88e2 authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Fixed docstrings on create and submit capability request views

parent d35872e3
No related branches found
No related tags found
1 merge request!96WS-31: Submit capability request view
Pipeline #623 passed
This commit is part of merge request !96. Comments created here will be created in the context of that merge request.
......@@ -41,7 +41,7 @@ def create_capability_request(request: Request) -> Response:
Pyramid view that accepts a request to create a capability request
URL: capability/{capability_name}/request/create
:param request: POST request, expecting JSON parameters ["parameters", "versions"]
:param request: POST request, expecting JSON parameter "parameters"
:return: Response with JSON-formatted info of newly created capability request
or 400 response (HTTPBadRequest) if expected parameters not given
or 412 response (HTTPPreconditionFailed) if capability with given name does not exist and thus cannot be
......@@ -91,7 +91,7 @@ def submit_capability_request(request: Request) -> Response:
Pyramid view that accepts a request to submit a capability request
URL: capability/{capability_name}/request/{request_id}/submit
:param request: POST request, expecting JSON parameters ["parameters", "versions"]
:param request: POST request
:return: Response with
or 412 response (HTTPPreconditionFailed) if capability request with given ID does not exist and thus cannot be
submitted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment