handlers

package
v0.0.0-...-204c8b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package classification NITD Results API

Documentation for NITD Results API

Schemes: http, https
BasePath: /
Version: 1.0.0
Contact: Rahul Dev Kureel<r.dev2000@gmail.com>

Consumes:
- application/json

Produces:
- application/json

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStudent

func GetStudent(db *mongo.Database, rw http.ResponseWriter, request *http.Request)

GetStudent returns information about a particular student

func GetStudents

func GetStudents(db *mongo.Database, rw http.ResponseWriter, request *http.Request)

GetStudents returns a list of students based on the search query parameters

func SignIn

func SignIn(rw http.ResponseWriter, request *http.Request)

swagger:route POST /auth/signin/ authentication signIn Sign in a user Consumes: - application/json

Produces: - application/json

Schemes: http, https

Responses:

default: ErrorResponse
200: ErrorResponse

func UpdateStudent

func UpdateStudent(db *mongo.Database, rw http.ResponseWriter, request *http.Request)

UpdateStudent updates or creates a student in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL