ZWeb.API.Flat.SessionsController (Portico/Z v0.1.0)
API endpoint for CRUD functions on ZSchemas.Flat.Session data through Z.Flat
Link to this section Summary
Functions
POST /api/flat/sessions
DELETE /api/flat/sessions/:portico_session_id
GET /api/flat/sessions
Link to this section Functions
    
      
      Link to this function
    
    
  create(conn, map)
POST /api/flat/sessions
Create/update sessions.
Expects a sessions key, containing a JSON array where each
element is a structure corresponding to
ZSchemas.Flat.Session.
Will update in the case that a portico_session_id is sent,
matching an existing Session. Otherwise, will create a new
session.
    
      
      Link to this function
    
    
  delete(conn, map)
DELETE /api/flat/sessions/:portico_session_id
Destroy a session, by portico_session_id
    
      
      Link to this function
    
    
  index(conn, params)
GET /api/flat/sessions
List sessions
Parameters
Any parameters will be passed directly to Z.Repo.get_all_by/3