- Every Response from server start with
status
- status
- OK
{ "status" : "OK", _ server responses }
- Error
{ "status" : "Error", "http" : status, "error" : err }
- OK
Send a valid token receive form /api/auth/login as an header of 'auth_token' to verify...
- POST
{ "username" : usr, "password" : pwd }
- Return
{ "level" : lvl, //privilege "token" : tok }
- Return
{ "pictures" : [ (source, alt), ... ] }
- /user/
- Post
{ "username" : usr, "password" : pwd, "permission" : 0-2, "name" : myname, "school" : school, "country" : myschool, * "email" : email, * "project" : myprojectcode } * means not required
- Return
{ "user" : { ... } }
- /project/
- Post
{ "name" : prjname, "branch" : fewchoices, "code" : prjcode, }
- Return
{ "project" : { ... } }
- Return
{ "announcements" : [ (id, topic),... ] }
- Return
{ "announcement" : { "id" : id, "topic" : topic, "author" : author, "date" : date, "time" : time, "content" : content } }
- Return
{ "events" : [ (id, name, date), ... ] }
- Return
{ "event" : { "id" : id, "topic" : topic, "date" : date, "description" : desc } }
- Return
{ "username" : usr, "name" : name, "school" : school, "country" : country_code, "email" : email, "project" : { "branch" : branch, "name" : name, "room" : room } }
- POST
{ "topic" : topic, "content" : content, "user" : usr }
- Return
{ "submitted" : true }
- Return
{ newspaper : source }
Underdevelopment
.
|-- index.js
|-- log.txt
|-- .env
|-- api
| `-- apiroutes.js
|-- bin
| |-- models
| | `-- mongoosemodels.js
| `-- alllibs.js
|-- routes
| `- webroutes.js
`-- templates
`- ejstemps.ejs
-
Me (obviously)
-
@Non-J is making a Flutter app