Save the data we get from Google login
POST (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"displayName": "",
"email": "",
"photoURL": ""
}
Save the data we get from User after Google auth
POST (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"college": "",
"phoneNumber": 0,
"graduationYear": 0,
"course": "",
"dob": "",
"gender": "",
"address": "",
"state": "",
"pinCode": 0
}
All event details.
GET (public)
All merch details.
GET (public)
All the details of a user.
GET (user only) (Firebase auth token required) (Bearer token)
Cart items of a user.
GET (user only) (Firebase auth token required) (Bearer token)
Purchase history of a user.
GET (user only) (Firebase auth token required) (Bearer token)
Add an item to cart.
POST (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"eventID": 0
}
{
"merchID": 0,
"quantity": 0,
"merchSize": ""
}
As Soon as the user login to the Google it will save the cart items of the local storage to the database with others.
POST (user only) (Firebase auth token required)
Update the quantity and size of an item in cart.
POST (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"merchID": 0,
"quantity": 0,
"merchSize": ""
}
Remove an item from cart.
DELETE (user only) (Firebase auth token required)
Bearer <Firebase auth token>
Add coupon to cart.
POST (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"coupon": ""
}
Add coupon to cart.
GET (user only) (Firebase auth token required)
Bearer <Firebase auth token>
Create an order.
GET (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"orderID": "",
"amount": 0,
"currency": ""
}
Verify and save the payment details.
POST (user only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"orderID": "",
"razorpayPaymentID": "",
"razorpaySignature": ""
}
Add new coupons.
POST (admin only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"code": "",
"discount": 0,
"type": "",
"description": ""
}
Check if the user is registered in the event
POST (admin only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"uid": "",
"eventID": ""
}
Check if the user is checked in the event
POST (admin only) (Firebase auth token required)
Bearer <Firebase auth token>
{
"uid": "",
"eventID": 0
}