This commit is contained in:
QkoSad
2023-08-08 16:02:54 +03:00
commit 0a7a469d56
315 changed files with 426907 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
curl http://localhost:3003/api/blogs | json_pp -json_opt pretty,canonical
curl http://localhost:3003/api/users | json_pp -json_opt pretty,canonical
curl -H "Content-Type: application/json" -X POST -d '{"title":"title1"}' http://localhost:3003/api/blogs | json_pp -json_opt pretty,canonical
curl -H "Content-Type: application/json" -X POST -d '{"username":"tomy1213","password":"tommy123","name":"Tonny Montana"}' http://localhost:3003/api/users | json_pp -json_opt pretty,canonical
curl -H "Content-Type: application/json" -X POST -d '{"username":"tommy","password":"tommy123"}' http://localhost:3003/api/login | json_pp -json_opt pretty,canonical
curl -H "Content-Type: application/json" -H "Authorization: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRvbW15IiwiaWQiOiI2NDg5NGQwOGVjOGQ0ZTgxMGRlZDQzZDEiLCJpYXQiOjE2ODY3MTk4MDl9.Vb0E6JNbWZTSiHXtXUnt7pT_yLMy8novvFAOqxoYKFA" -X POST -d '{"title":"title1"}' http://localhost:3003/api/blogs | json_pp -json_opt pretty,canonical