post /signup
recieve the following object if user exists then send error
####Request
{
"roll":232432423432,
"token":"EAARxNhowHWQBAJZCA3",
"type":"facebook",
"skills":[
{"name":"Broccoli"},
{"name":"Cabbage"}
],
"intrests":[
{"title":"Instrumental"},
{"title":"Music Mixing"},
{"title":"Photography"}
],
"college_id":1
}
- type : facebook/google
- token : "token vlaue"
- interests : array
- each with : interest_ids
- skills : array
- each with : name (check if more than 5 then error)
- college : "college_id"
- roll : "roll_number"
####Response
{
"status": "Registered Successfully",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0ODg2OTQ0NDEsImV4cCI6MTQ5MTI4NjQ0MSwianRpIjoiNm02bDY5bTNNRktoRHdpT2M2bGlteSIsInN0dWRlbnRfaWQiOjE2fQ.JYC0Mm4EEGpYrjRrh9htFIQSil2yzoKs2wN2WaPsQ80"
}
post /logn
recieve the following object if user does not exist then send error
{
"access_token":"EAARxNhowHWQBAKGLdW9LjSN88nNkr6ZC7nE4iyPXcNLgOZALqlWeqmtfZA4PoX4gZClnFZCxAXD0qA6ZB5QSql7K4fp3MEeMgd8bGKizWbcMGrAdatrQZCAST5fuOawqDAuBglxwfZA9O0K41OhTRIhiZBbNrxTyf5PUZD",
"expires_in":"5132834"
}
- type : facebook/google
- token : "token vlaue"
####Response
{
"status": "ok",
"registered": true,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE0ODg2OTQ2ODcsImV4cCI6MTQ5MTI4NjY4NywianRpIjoiNlNueGd2bTJ1MkVTc0VjQnFJWTd3RCIsInN1YiI6MSwic3R1ZGVudF9pZCI6MX0.EvSdgu84_LLJ6y4eqyVjGTzKNvx6GEBdd7cmxtlJsIE"
}
get /home
get /events
send events which student is elligible for inter==false and collegeid matches that of student then inter == true only events which are yet to happen
{
"data": [
{
"id": 1000,
"title": "AICHE Industrial Visit",
"subtitle": null,
"details": {
"venue": null,
"type": null,
"team": 0,
"price": 0,
"description": "AIChE Student Chapter is conducting an industrial visit to SATIA PAPER MILLS, MUKTSAR",
"rules": "AIChE Student Chapter is conducting an industrial visit to SATIA PAPER MILLS, MUKTSAR"
},
"timings": {
"date": {
"start": null,
"end": null
},
"time": {
"start": null,
"end": null
}
},
"Actions": {
"Bookmarked": {
"status": true,
"total": 2,
"bookmarks": 2
},
"Participants": {
"status": true,
"total": 4
}
},
"contact": [
{
"name": null,
"link": 0,
"image": null
},
{
"name": null,
"link": 0,
"image": null
}
],
"created": {
"by": {
"name": null,
"link": 0,
"image": null
},
"at": {
"date": "2016-10-15 16:06:22.000000",
"timezone_type": 3,
"timezone": "UTC"
}
},
"tags": {
"0": {
"name": null,
"link": 0
},
"total": 4
},
"links": {
"self": "/events/"
}
}]
}```
### get one event
> get /event/{id}
send data for one event
```json
same as above
post /RsvpEvent/{id}
check rsvp already exists otherwise add one
example object returned
delete /RsvpEvent/{id}
check rsvp already exists then delete
{
"status": "ok",
"message": "Rsvp Removed"
}
post /LikeEvent/{id}
check Like already exists otherwise add one
example object returned
delete /likeEvent/{id}
check like already exists then delete
example object returned
post /event
add new event
will send confirmation
delete /event/{id}
delete event check if it belongs to the student
Same as above
get /contents
send contents which student is interested in sort by latest added and followed by the person
{
"data": [
{
"id": 13,
"title": "How Cafes Are The New Workplaces!",
"content": {
"type": 0,
"description": "###Human beings have an amazing ability ",
"embed": "Lakshit Anand",
"images": {
"alt": null,
"link": 0
}
},
"created": {
"by": {
"name": "Lakshit Anand",
"link": 1,
"image": "https://avatars3.githubusercontent.com/u/6951276?v=3&s=400"
},
"at": "20161004T19:18:07"
},
"Actions": {
"appreciate": {
"status": true,
"total": 1
},
"Bookmarked": {
"status": true,
"total": 1
}
},
"details": {
"software": {
"name": null,
"link": 0
},
"euquipment": {
"name": null,
"link": 0
}
},
"tags": {
"name": null,
"link": 0
},
"total": 1,
"links": {
"self": "/contents/"
}
},
get /content/{id}
send data for one content
same as above
post /bookmarkcontent/{id}
check bookmark already exists otherwise add one
example object returned
delete /bookmarkcontent/{id}
check bookmark already exists then delete
example object returned
post /Likecontent/{id}
check Like already exists otherwise add one
example object returned
delete /likeContent/{id}
check rsvp already exists then delete
example object returned
post /content
add new content
example object returned
delete /event/{id}
delete event check if it belongs to the student
example object returned
get /student/{id}
send data for one student send student details , - skillls, - events created, - content created , - students following , - events rsvped, - bookmarked content
{
"data": {
"id": 1,
"name": "Lakshit Anand",
"subtitle": "Web Developer, wants to create meaningful projects to positively impact the world. :sweat_smile: ",
"photo": "https://avatars3.githubusercontent.com/u/6951276?v=3&s=400",
"college": {
"roll_number": 101506031,
"name": "Thapar University",
"hostelid": null,
"room_number": "B305"
},
"contacts": {
"email": "[email protected]",
"phone": 594664
},
"about": {
"age": null,
"gender": "Male",
"home_city": "Delhi"
},
"studies": {
"grad_id": null,
"branch_id": null,
"year": "2018",
"class_id": null,
"passout_year": 2017,
"college": "Thapar University"
},
"Events": {
"data": [
]
},
"Skills": {
"data": [
{
"id": 0,
"name": "AngularJS",
"links": {
"self": "/reports/"
}
},
{
"id": 0,
"name": "Espanol",
"links": {
"self": "/reports/"
}
}
]
},
"SocialAccounts": {
"data": []
},
"Followed": {
"data": [
]
},
"BookmarkedContents": {
"data": [
]
},
"AttendingEvents": {
"data": [
]
}
}
}
post /followstudent/{id}
check follow already exists otherwise add one
example object returned
delete /followstudent/{id}
check follow already exists then delete
example object returned
get /search/{query}
send data for one search send - name - image - type = event/student/content - link
example object returned
post /fullsearch/{id}
check full objects of all 3 types in search
example object returned
get /skills
send skills name
example object returned
get /skills/{query}
send skills name
example object returned
get /Colleges
send - College_id - College name
example object returned
get /Colleges/{query}
send - College_id - College name
example object returned
get /eventTypes
send - Type_id - type_name
example object returned
get /event tags
send - Tag
example object returned
get /eventtags/{query}
send - Tag
example object returned