Next: Async Jobs, Previous: REST Interface, Up: REST API [Contents][Index]
This defines abilites to create new sessions and lookup existing sessions,
managed by session client id
.
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.
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.
The following resources are define by this file:
establish ownership of a jobs, software objects, populations, etc.
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.