summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-25 20:13:37 +0100
committerniliara-edu <nil.jimeno@estudiant.fjaverianas.com>2025-01-25 20:13:37 +0100
commit8782579e326b55e182d5767a451b8864b3453cce (patch)
tree7c7ce8dbae815f98e897bd3b46364fc6ae8d203a
parent679f15b5ea948a345e959fc3eef1465d2a3b8b48 (diff)
fixing last commit: root has not been updated
-rw-r--r--Cargo.toml1
-rw-r--r--curlie_guide5
2 files changed, 6 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 8022b51..8da9c88 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,6 +13,7 @@ serde_json = "1.0.128"
env_logger = "0.11.6"
jsonwebtoken = "9.3.0"
chrono = "0.4.39"
+utoipa-actix-web = "0.1.2"
[package.metadata.scripts]
db_create = "bash ./scripts/create_db.sh"
diff --git a/curlie_guide b/curlie_guide
index 40769b7..462ed48 100644
--- a/curlie_guide
+++ b/curlie_guide
@@ -1,5 +1,10 @@
+== api ==
curlie
-f [POST/PUT/DELETE] (leave empty for GET)
(:8000/api/[song/album/artist] || :8000/auth/[encode_token/decode_token/protected])
argument=value (ex: id=2)
header:value (for tokens: Accept:application/json Authorization:token_here)
+
+
+== decode-auth ==
+curlie [-f POST] :8000/auth/decode-token token="token_here"