Changes between Version 16 and Version 17 of AccountServer


Ignore:
Timestamp:
05/14/20 16:45:12 (5 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AccountServer

    v16 v17  
    66
    77= Core functionality
    8 The core of the AccountServer is the Account servlet. It has four modes
    9  * GET: this returns a json structure {"name":username, "id":userid} with the current user name and id. It returns error 500 if the user is not logged in.
     8The core of the AccountServer is the {{/Accounts}}} servlet. It has four modes
     9 * GET: if query="me" returns info about current user: returns list with a map with  current "name" and "id" if query="all" returns list such maps, one for each known user. It throws error 500 if the user is not logged in.
    1010 * POST: this is a login request. Extra data to be send is a NamePassword structure which basically is {'name':XXX, 'password':YYY} json structure. As long as the browser does not start a new session (this depends on the browser but usually this means "staying on the same page") the user stays logged in.
    1111* PUT: this is a register request. Extra data to be send is a NamePasswordEmail structure which basically is {'name':XXX, 'password':YYY, 'email':ZZZ} json structure. The email can be empty. This creates a new account if the name.