Next: , Previous: , Up: REST API   [Contents][Index]


This defines abilites to create new sessions and lookup existing sessions, managed by session client id.

2.6.3.4 Dependencies

The Rest API leverages a number of Common Lisp components, which are open-source and generally available via Quicklisp. See the core REST file for a full description and how to start a rest server.

2.6.3.5 Resources and Operations

A standard sel Rest API supports logical resources, all driven by an underlying client session system. This file defines that client session system, including the internal data structures and the client session endpoint.

Resources

The following resources are define by this file:

Client sessions

establish ownership of a jobs, software objects, populations, etc.

Operations on Resources

Client:

See the ‘sessions‘ section for more details.

post

<service-base>/client Create a new client session. The request should include a JSON body for special variable bindings including:

- max-population-size (integer) : Max Population Size (see *max-population-size*) - mutation-rate (float) : Mutation Rate (see *mut-rate*) - cross-chance (float) : Cross Chance (see *cross-chance*)

Returns the Client-ID.

delete

<service-base>/client&cid=<cid> Delete the client session, and cause all the software objects owned by the session to become garbage.