Skip to content

xvbnm48/gin-course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gin-course

golang gin course

Lets go to learning Gin !`

how to use ?

  1. login with username and password in route https://gin-videoss.herokuapp.com/login , username sakura_endo and password: sakura_endo with postman for get token
  2. access to https://gin-videoss.herokuapp.com/view/videos
  3. if videos is not show, it means the video hasn't been uploaded yet
  4. can upload with use postman and use this route http://gin-videos.herokuapp.com/api/posts , but use Bearer token for authorization in postman > authorization > bearer token , token that is got from the previous login
  5. after filling authentication with Bearer (token) then fill json body like this
 {
   "title" : "how to become master golang",
   "description":"how to fast become master of golang under 1 years!",
   "url":"https://www.youtube.com/embed/JgW-i2QjgHQ",
   "author":{
     "first_name" :"sakura",
     "last_name":"endo",
     "age":19,
     "email":"[email protected]"
   }
}
  1. link video video links are obtained from embed YouTube
  2. and click send at postman
  3. if success create new videos, check on https://gin-videoss.herokuapp.com/view/videos , then the uploaded video will appear

About

golang gin course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published