Class: SmartBrain::Server::HttpApp

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/smart_brain/server/http_app.rb

Overview

Minimal JSON HTTP API over a Service. Endpoints:

POST /commit   { session_id, turn_events }
POST /compose  { session_id, user_message, agent_state? }
POST /search   { session_id, query, limit? }
GET  /status
POST /migrate

Class Attribute Summary collapse

Class Attribute Details

.serviceObject

Returns the value of attribute service.



17
18
19
# File 'lib/smart_brain/server/http_app.rb', line 17

def service
  @service
end