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()
Types ¶
This section is empty.