Skip to content

mmkader85/build-jwt-authenticated-restful-apis-with-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build JWT authenticated Restful APIs with Golang

Based on udemy course - https://naspers.udemy.com/course/build-jwt-authenticated-restful-apis-with-golang/learn/lecture/12509338?start=0#overview

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@example.com",
    "password": "password"
}'
Login
curl --location --request POST 'http://localhost:8000/login' \
--header 'Content-Type: text/plain' \
--data-raw '{
    "email": "email@example.com",
    "password": "password"
}'
Get all users
curl --location --request GET 'http://localhost:8000/get_all_users' \
--header 'Authorization: Bearer eyJhbG...fT2XZs'

About

Build JWT authenticated Restful APIs with Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages