Commit Graph

135 Commits

Author SHA1 Message Date
Seth House
b039a45d93 Added explicit heading so the heading shows up in TOC entries 2013-03-04 15:17:52 -07:00
Seth House
d649bd263f Added logging output if the rest_cherrypy module is partially configured
Added minimum version check for CherryPy.

Fixes #38
Fixes #48
2013-02-27 14:29:45 -07:00
Pedro Algarvio
6f34684d21 Add some logging to let the users know what's happening. Minor PEP-8. 2013-02-27 12:22:07 +00:00
Seth House
d96944fee0 Unabbreviated "external auth" 2013-02-12 15:08:43 -07:00
Seth House
0989b380cf Added missing line-breaks 2013-02-12 12:56:10 -07:00
Seth House
7c016a263c Minor clarifications to the rest_cherrypy config options 2013-02-12 12:52:19 -07:00
Seth House
391951dff9 Added docs on requiring the eauth system
Fixes #23
2013-02-07 14:20:48 -07:00
Seth House
24d6c03615 Check that staticdir has been set before checking Accept headers
As @dthom91 pointed out, this handler is called per-request so the fewer
operations we can do here the better.
2013-02-04 12:43:58 -07:00
David Thompson
502bcdda55 Corrected problem where uninitialized config key 'static' caused key error to be thrown even when accept header wasn't set to 'text/html'. 2013-02-04 11:26:39 -08:00
Pedro Algarvio
98ee9b948d Minor doc typo. 2013-01-26 21:48:52 +00:00
Seth House
a5fb128675 Add custom global config options to the CherryPy global config 2013-01-22 12:09:11 -07:00
Seth House
93748814ff Removed the remaining HTML templates 2013-01-21 14:59:53 -07:00
Seth House
8bd8ea6060 Fixed overzealous Accept header match on *.* 2013-01-21 14:53:11 -07:00
Seth House
b834957bdb Fixed sait-ui -> salt-ui 2013-01-21 14:14:36 -07:00
Seth House
5b8b555a8d Updated docs for 302 -> 202 change 2013-01-18 11:22:21 -07:00
Seth House
ab396c358a Changed response on /minions from 302 to 202
Arguably this is a more appropriate response code. In addition, the
original intent with the 302 was to supply the job ID in order to be
able to reference it later, however 3XX responses are not available via
the XHR object in browsers nor do they communicate intent.
2013-01-18 10:32:18 -07:00
Seth House
a7a8b9787d Don't enable staticdir if static isn't set in the config 2013-01-15 15:18:58 -07:00
Seth House
80e7aa2025 Hack-ish fix for urlencoded data 2013-01-12 01:42:21 -07:00
Seth House
1c754a35d0 Fixed the login to use the processed request body 2013-01-12 00:43:05 -07:00
Seth House
9f1f5b9c17 Improved docs for the 'static' config setting 2013-01-11 16:19:21 -07:00
Seth House
271446b6e0 Added 'static' config setting to global opts 2013-01-11 16:15:30 -07:00
Seth House
c7607b98e4 Fixed synxtax error assembling a list for accept() 2013-01-11 15:35:40 -07:00
Seth House
ff2aab3d35 Added a few explanatory comments 2013-01-11 15:13:36 -07:00
Seth House
9a5dba0da6 wip: Removed HTML as an output option; if HTML is requested serve static files 2013-01-11 15:13:09 -07:00
Seth House
77c42d6cf4 Default to JSON if requested Content-Type is *.* or not supported 2013-01-11 10:23:51 -07:00
Seth House
70588f2f69 Loop over all lowstates, not just the first o_O 2013-01-11 10:08:58 -07:00
Seth House
b69bbd2654 Remove sys.doc from the /minions call
This is better done via the sys.doc runner so you don't get (likely)
duplicate docs back from each and every minion.
2013-01-11 10:08:58 -07:00
Seth House
fe0374de8e Default session length to same as the Salt token
Fixes #31
2012-12-27 13:35:52 -07:00
Seth House
fc99a10344 Return the correct status code on auth errors from Salt 2012-12-23 20:07:00 -07:00
Seth House
f0b811ac23 Use regular JSON/YAML instead of Salt outputters 2012-12-23 00:26:50 -07:00
Seth House
08eeffb9a8 Removed Angular 2012-12-13 17:25:20 -07:00
Seth House
dbdf4e841f Added RequireJS 2012-12-11 15:02:32 -07:00
Seth House
30cd7def62 Added more JS libs
This giant mess will be refactored out in short order.
2012-12-04 19:45:54 -07:00
Seth House
79b954697b Use the HTML5 data- prefix 2012-12-04 19:45:35 -07:00
Seth House
adfe4ed8a4 Renamed salt-ui -> saltui 2012-12-03 19:09:33 -07:00
Seth House
c82188c33f Removed empty whitespace 2012-12-01 21:15:05 -07:00
Seth House
b94eae835f Fixed Accept -> Alternates header name 2012-11-30 13:01:38 -07:00
Seth House
ce32c36e17 Updated the root form params docs to reference general lowstate
Mentioning specific lowstate keys was too specific and the various
client interface docs should be linked instead.
2012-11-30 11:21:05 -07:00
Seth House
76eee0fee3 Added convenience URLs for minions and jobs 2012-11-30 11:21:05 -07:00
Seth House
fc0e6e8e86 Added better default for staticdir
The 'tmpl' directory is somewhat arbitrary, but it's a place on the
filesystem that we know will exist. If we ever put salt-ui static file
builds in this repo that will also be a good place for them.

Thanks to dthom91 for the bug report!
2012-11-29 20:09:20 -07:00
Seth House
86f2f7c709 Added a bunch of bootstrap javascript 2012-11-26 19:43:35 -07:00
Seth House
24f922c3c3 Moved to non-minified version 2012-11-21 17:05:09 -07:00
Seth House
682783cefc Fixed lowdata -> lowstate typo 2012-11-21 11:52:14 -07:00
Seth House
a8af4e0c3f Removed note about specific Content-Types
This information should be available in headers. Also we support HTML
now. :)
2012-11-21 11:49:17 -07:00
Seth House
e0a1593d8b Changed all Content-Type processors to store Low State in request
This change makes our hypermedia_in processors consistent in the kind of
data they format (Low State) and where that data is placed
(request.lowstate).
2012-11-21 11:47:38 -07:00
Seth House
6af934c986 Removed unused import 2012-11-21 11:47:38 -07:00
Seth House
06cb3a5a9b Updated HTML skeleton with req'd angular markup 2012-11-21 11:47:38 -07:00
Seth House
f48dca4610 Move config specific to the REST app into that handler 2012-11-20 20:12:01 -07:00
Seth House
76453826df Added serving static media from a configurable directory 2012-11-20 20:12:00 -07:00
Seth House
addca3c47b Document function/class params 2012-11-20 14:27:52 -07:00