Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

IvanLisz/events

Repository files navigation

Eventually

API's Endpoints:

Event Endpoints:

get('/api/events/', index); //OPTIONAL ?limit=10&page=0&type= || next, now, old
get('/api/events/:id', show);
get('/api/events/name/:name', showByName); //OPTIONAL ?limit=10&page=0
post('/api/events/', isAuthenticated(), create);
put('/api/events/:id', isAuthenticated(), update);
patch('/api/events/:id', isAuthenticated(),update);
delete('/api/events/:id', isAuthenticated(), destroy);

get('/api/events/:id/quota', getQuota);

User Endpoints:

get('/api/users/', hasRole('admin'), index);
delete('/api/users/:id', hasRole('admin'), destroy);
get('/api/users/me', isAuthenticated(), me);
put('/api/users/:id/password', isAuthenticated(), changePassword);
get('/api/users/:username', isAuthenticated(), show);
post('/api/users/', create);

Favs Endpoints:

post('/api/favorites/add/:id', isAuthenticated(), add);
post('/api/favorites/remove/:id', isAuthenticated(), remove);
get('/api/favorites/list/:uid', list); //OPTIONAL ?limit=10&page=0

Badges Endpoints:

get('/api/badges/', index);
get('/api/badges/:id', show);

Tickets Endpoints:

post('/api/tickets/buy/:eid', isAuthenticated(), buy); //POST { tid: ticketID }
post('/api/tickets/cancel/:eid', isAuthenticated(), cancel); //POST { cancelIds: [_ids] }
post('/api/tickets/revert/:eid', isAuthenticated(), revert);
get('/api/tickets/list', isAuthenticated(), list); //OPTIONAL ?limit=10&page=0

Publications Endpoints:

post('/api/publications/post/:eid', isAuthenticated(), buy); //POST {"publication": {"text": "hola", "media": "http://example.com/example.jpg"}}
post('/api/publications/remove/:eid', isAuthenticated(), cancel); //POST  {"pid": "558b8ebcca00a3971ac60bcf"}
get('/api/publications/list/:eid', list); 

//eid = eventID

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published