Skip to content

Commit

Permalink
docs: add validate example in User Guide
Browse files Browse the repository at this point in the history
  • Loading branch information
helen-m-lin committed Dec 18, 2024
1 parent a711d41 commit 41928f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/UserGuide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ endpoint:
)
post_request_content = json.loads(submit_request.model_dump_json(exclude_none=True))
# Optionally validate the submit_request before submitting
validate_job_response = requests.post(url="http://aind-data-transfer-service/api/v1/models/SubmitJobRequest/validate", json=post_request_content)
print(submit_job_response.status_code)
print(submit_job_response.json())
# Uncomment the following to submit the request
# submit_job_response = requests.post(url="http://aind-data-transfer-service/api/v1/submit_jobs", json=post_request_content)
# print(submit_job_response.status_code)
Expand Down

0 comments on commit 41928f9

Please sign in to comment.