summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-19 19:23:05 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-19 19:23:05 -0400
commit9bc0c33a952dc906344964890bce58761d6ce2c7 (patch)
treec2ec7bdf4369f97010f3496bd7d85c7da83abb2b /test.sh
feat: Initial Commit, Partial Functionality
This is the initial commit. The url-shortener is partially functional. URLs can be shortened and stored for the runtime of the program. API keys are not checked, nothing is persistent, and short URLs are size limited to 4 alpha numeric characters.
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..c2cc156
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+RES=$(curl -X 'POST' \
+ -H 'accept: application/json' \
+ -H 'Content-Type: application/json' \
+ --data '{ "URL": "https://git.mcdonnell.dev/" }' \
+ http://localhost:8000/shorten 2>/dev/null)
+printf '%s\n' "$(echo "$RES" | json_pp)"
+