Skip to content

Commit

Permalink
add files that are helpful for debugging direct API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Feb 2, 2024
1 parent 07b028c commit 5378646
Show file tree
Hide file tree
Showing 2 changed files with 1,235 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/resources/test-api.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# API endpoint URL with placeholder for {id}
url="http://localhost:8080/metadig-webapp-3.0.0-SNAPSHOT/checks/resource.keywords.controlled-2.0.0/run/"
# url="http://localhost:8080/metadig-webapp-3.0.0-SNAPSHOT/suites/FAIR-suite-0.4.0/run/"
# Headers
headers=(
"Content-Type: multipart/mixed"
)

# Make the API request using curl
curl -X POST "$url" \
--header 'Content-Type: multipart/form-data; boundary=---------BOUNDARY' \
--data-binary @testfile.txt

Loading

0 comments on commit 5378646

Please sign in to comment.