Coder Social home page Coder Social logo

gdg-free-slots-app's Introduction

GDG-free-slots-app

All methods are POST

url: http://free-slots-app.herokuapp.com/

/register

request body: {reg:'<regNo>',psswd:'<passwd>',fcmRegistrationToken:'<fcm>'}
success response:{uid:'<mongouid>',message:'<success>'} STATUS:200
error response:{error:'failed'} STATUS:500

/create_group

request body:{name:'',members:[],admin:'<uid of admin>'}
success response:{admin:'',name:'',members:[],freeslots:[],pending:[],lstup:<date>,reject:[]} STATUS 200
error response:{error:'failed'} STATUS:500

/respond

request body:{userId:'',groupId:'',status'<acccept=1,reject=2>'}
success response:{message:'success'} STATUS:200
faliure response:{error: 'failed'} STATUS:500

/group_update

request body:{groupId:'',lstupdate:<Date>}
if Latest:
success response:{message:'latest'} STATUS:200
faliure response:{error: 'failed'} STATUS:500

if not Latest:
success response:{admin:'',name:'',members:[],freeslots:[],pending:[],lstup:<date>,reject:[]} STATUS:200
error response:{error:'failed'} STATUS:500

/timetable

request body:{reg:'<registration number>'}
success response:{slots:[],freeslots:[]} STATUS 200
not found error response:{error:'user not found'} STATUS:404
retrieve faliure response:{error: 'retrieve failed'} STATUS:500

/adduser

request body:{groupId:'<groupId>',reg:'<registration number>'}
success response:{message:'success'} STATUS 200
not found error response:{error:'group not found'} STATUS:404
retrieve faliure response:{error: 'retrieve failed'} STATUS:500

/remove_member

request body:{groupId:'<groupId>',adminId:'<user id>',user:'<uid of member to be removed>'}
success response:{message:'success'} STATUS 200

member not found response:{'error':'not a member of group'} STATUS:404
non admin sending request:{error:'unauthorised access'} STATUS:400
not found error response:{error:'group not found'} STATUS:404
database update faliure: {'error':'database update failed'} STATUS:500
retrieve faliure response:{error: 'retrieve failed'} STATUS:500

/privacy

request body:
{
	"reg":"<registration_number>",
	"code":"<0=private,1=public>"
}
success response:{message:'changed privacy settings'} STATUS 200

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.