curl -X GET \
'http://localhost:5000/user/login' \
-H 'Authorization: Basic <login:password(encoded in base64)>'
Create a new post
curl -X POST \
'http://localhost:5000/post/create' \
-H 'Authorization: Bearer <JWT token you've got after login' \
-H 'Content-Type: application/json' \
-d '{
"title":"My first post",
"text":"This a post about how I (user 1) created my first post.."
}'
Post like (unlike is the same but instead of like use unlike in route)