endpoints

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEventsAndOrgs

func GetEventsAndOrgs() http.HandlerFunc

func GetOrgEvents

func GetOrgEvents() http.HandlerFunc

* * @api {get} /api/v1/org/events Get events of organization * @apiName Get events of organization * @apiGroup organization * * @apiPermission user * @apiParam {string} org organization name as query param * * * @apiParamExample {json} request-example * curl localhost/api/v1/org/events?org=DSC-VIT * @apiParamExample {json} response-example * *{ * "message": "Successful", * "data": { * "events": [ * { * "clubName": "DSC-VIT", * "name": "WomenTechies'19", * "toDate": "11th March", * "fromDate": "10th March", * "toTime": "7 PM", * "fromTime": "6 PM", * "budget": "115000", * "description": "Women centric hackathon", * "category": "TECHNICAL", * "venue": "Kamaraj Auditorium", * "attendance": "315", * "expectedParticipants": "315", * "facultyCoordinator": { * "name": "", * "registrationNumber": "", * "email": "", * "phoneNumber": "", * "gender": "" * }, * "studentCoordinator": { * "name": "", * "registrationNumber": "", * "email": "", * "phoneNumber": "", * "gender": "" * }, * "PROrequest": "", * "campusEngineerRequest": "mics, podium, projector", * "duration": "24 hours", * "status": "" * } * ] * } *} *

func GetOrgs

func GetOrgs() http.HandlerFunc

* * @api {get} /api/v1/org/ Get organizations of user * @apiName Get organizations of user * @apiGroup organization * * @apiPermission user * * @apiParamExample {json} response-example * *{ * "message": "Successful", * "data": { * "organizations": [ * { * "name": "CodeChef-VIT", * "location": "India", * "description": "Developer Student Clubs", * "tag": "technical", * "createdAt": "2019-08-05 23:12:14.963858896 +0000 UTC m=+14.778325532", * "website": "" * } * ] * } *} *

func Init

func Init() *http.ServeMux

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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