Skip to content

u2x1/lifelog-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# lifelog-server

===== method =====

   router              method       request body                    response body
/user/login/            Post    {username, password}            {code, msg, value{null}}
/user/register/         Post    {username, password}            {code, msg, value{null}}
/user/exist/:username   Get                                     Boolean

/event/fetch/           Post    {userSession, lastSyncTime}     {code, msg, value{tag, contents[$event]}}
/event/upload/          Post    {userSession, events[$event]}   {code, msg, value{null}}


note:
  event {id, startTime, endTime, modifyTime, name, nameSec, type}



===== status code =====

100     opearation finished successfully
101     username already exists (registration)
102     username not exists
103     password does not match username

110     opearation finished successfully
111     user session not exists

201     not implemented
202     json parse error

About

Backend for Lifelog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published