Categorygithub.com/mmkader85/build-jwt-authenticated-restful-apis-with-golang
modulepackage
0.0.0-20241019034002-bec558118895
Repository: https://github.com/mmkader85/build-jwt-authenticated-restful-apis-with-golang.git
Documentation: pkg.go.dev

# README

Build JWT authenticated Restful APIs with Golang

Run the program

$ ./user_jwt

Curl for end-points

Signup
curl --location --request POST 'http://localhost:8000/signup' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "email": "[email protected]",
    "password": "password"
}'
Login
curl --location --request POST 'http://localhost:8000/login' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "email": "[email protected]",
    "password": "password"
}'
Get all users
curl --location --request GET 'http://localhost:8000/get_all_users' \
--header 'Authorization: Bearer eyJhbG...fT2XZs'

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author