Documentation
¶
Index ¶
- func CallViper()
- func CreateNewStudent(c *gin.Context)
- func CreateNewUser(c *gin.Context)
- func DeleteStudent(c *gin.Context)
- func DisplaysAllStudent(c *gin.Context)
- func DisplaysAllUser(c *gin.Context)
- func DisplaysAllUserByID(c *gin.Context)
- func DisplaysIndexPage(c *gin.Context)
- func EditStudent(c *gin.Context)
- func Login(c *gin.Context)
- func RouteNotFound(c *gin.Context)
- func Salutation(c *gin.Context)
- func SearchByCpf(c *gin.Context)
- func SearchByRg(c *gin.Context)
- func SearchStudentbyID(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallViper ¶
func CallViper()
CallViper godoc @Sumary Call Viper @Description Route to Call Viper
func CreateNewStudent ¶
CreateNewStudent godoc @Sumary Create Students @Description Route to create students @Tags students @Accept json @Produce json @Param students body models.Alunos true "models Students" @Sucess 200{object} models.Alunos @Failure 404{object} http.BadRequest @Route /alunos [POST]
func CreateNewUser ¶
func DeleteStudent ¶
DeleteStudent godoc @Sumary Delete Student @Description Route to delete student @Tags student @Accept json @Produce json @Param students body models.Alunos true "models Students" @Sucess 200{object} models.Alunos @Failure 404{object} http.BadRequest @Route /alunos/:id [DELETE]
func DisplaysAllStudent ¶
DisplaysAllStudent godoc @Sumary Display all student @Description Route to displays all student @Tags students @Accept json @Produce json @Sucess 200{object} []models.Alunos @Failure 404{object} http.BadRequest @Route /alunos [get]
func DisplaysAllUser ¶
func DisplaysAllUserByID ¶
func DisplaysIndexPage ¶
DisplaysIndexPage godoc @Sumary Displays index.html @Description Route to render on index screen @Tags student @Accept json @Produce json @Param students body []models.Alunos true "models Students" @Sucess 200{object} []models.Alunos @Failure 404{object} http.BadRequest @Route "/index" [GET]
func EditStudent ¶
EditStudent godoc @Sumary Edit Student @Description Route to edit student @Tags student @Accept json @Produce json @Param students body models.Alunos true "models Students" @Sucess 200{object} models.Alunos @Failure 404{object} http.BadRequest @Route /alunos/:id [PATCH]
func RouteNotFound ¶
funcao para rendereizar na tela index.html DisplaysIndexPage godoc @Sumary I created a func for when I have a route found @Description Route to not Found @Route "r.NoRoute"
func Salutation ¶
Salutation godoc @Sumary Salutation @Description Route to create students @Tags students @Accept json @Produce json @Param Params.ByName("nome") @Sucess 200{object} "API says": "Welcome " + name + " to our API." @Failure 404{object} http.BadRequest @Route /:nome [GET]
func SearchByCpf ¶
func SearchByRg ¶
func SearchStudentbyID ¶
SearchStudentbyID godoc @Sumary Search Student by ID @Description Route to search students by ID @Tags students @Accept json @Produce json @Param students body models.Alunos true "models Students" @Sucess 200{object} models.Alunos @Failure 404{object} http.BadRequest @Route /alunos/:id [GET]
Types ¶
This section is empty.