controller

package
v0.0.0-...-09b6e72 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleExcel

func HandleExcel(w http.ResponseWriter, r *http.Request)

* *@api {get} /api/v1/exporter/excel export participants as excel/csv *@apiName export participants as excel/csv *@apiGroup exporter *@apiPermission admin *@apiParam {String} [key] key to query the event by *@apiParam {String} [value] value of the key *@apiParam {String} event event name *@apiParam {String} specific types of participants to export i.e. present/absent/all * *@apiParamExample {json} request-example1 *{ * "event":"DEVFEST 2019", * "query":{ * "key":"gender", * "value":"F", * "specific":"project-all" * } *} * *@apiParamExample {json} request-example2 *{ * "event":"DEVFEST 2019", * "query":{ * "key":"gender", * "value":"F", * "specific":"project-present" * } *} * * *@apiParamExample {json} request-example3 *{ * "event":"DEVFEST 2019", * "query":{ * "key":"gender", * "value":"F", * "specific":"project-absent" * } *} *

func HandleJson

func HandleJson(w http.ResponseWriter, r *http.Request)

* *@api {get} /api/v1/exporter/json export participants as json *@apiName export participants as json *@apiGroup exporter *@apiPermission admin *@apiParam {String} [key] key to query the event by *@apiParam {String} [value] value of the key *@apiParam {String} event event name *@apiParam {String} specific types of participants to export i.e. present/absent/all * *@apiParamExample {json} request-example1 *{ * "event":"DEVFEST 2019", * "query":{ * "key":"gender", * "value":"F", * "specific":"project-all" * } *} * *@apiParamExample {json} request-example2 *{ * "event":"DEVFEST 2019", * "query":{ * "key":"gender", * "value":"F", * "specific":"project-present" * } *} * * *@apiParamExample {json} request-example3 *{ * "event":"DEVFEST 2019", * "query":{ * "key":"gender", * "value":"F", * "specific":"project-absent" * } *} *

func RegisterRoutes

func RegisterRoutes()

func Startup

func Startup()

Types

This section is empty.

Jump to

Keyboard shortcuts

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