rest_tornado

New in version 0.8.5.

curl localhost:8888/login -d client=local -d username=username -d password=password -d eauth=pam

for testing curl -H 'X-Auth-Token: 89010c15bcbc8e4fc4ce4605b6699165' localhost:8888 -d client=local -d tgt='*' -d fun='test.ping'

# not working.... but in siege 3.0.1 and posts.. siege -c 1 -n 1 "http://127.0.0.1:8888 POST client=local&tgt=*&fun=test.ping"

# this works ab -c 50 -n 100 -p body -T 'application/x-www-form-urlencoded' http://localhost:8888/

{"return": [{"perms": ["."], "start": 1396151398.373983, "token": "cb86b805e8915c84bceb0d466026caab", "expire": 1396194598.373983, "user": "jacksontj", "eauth": "pam"}]}[jacksontj@Thomas-PC netapi]$

REST URI Reference

POST /
SaltAPIHandler.post()

Mock out specified imports

This allows autodoc to do it's thing without having oodles of req'd installed libs. This doesn't work with import * imports.

http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules

Table Of Contents

Previous topic

rest_cherrypy

Next topic

rest_wsgi