flosch / simpleapi

A simple API-framework to provide an easy to use, consistent and portable client/server-architecture (standalone and also for django, Flask, AppEngine and all WSGI-compatible implementations like gunicorn).
http://simpleapi.readthedocs.org
MIT License
145 stars 20 forks source link

Python/Flask examples not working #8

Closed thomasbhatia closed 12 years ago

thomasbhatia commented 12 years ago

None for Python/Flask examples work for me, e.g calculator gives me error: AssertionError: HTTP-Server returned http code 405 (expected: 200)

HTTP GET works.

Python client POST don't work.

Wireshark from python client: POST /api/ HTTP/1.0 Content-Type: application/x-www-form-urlencoded Content-Length: 10 Host: 127.0.0.1:8888 User-Agent: Python-urllib/1.17 _call=test

But Flask server responds: {"errors": ["Method must be provided."], "success": false}

flosch commented 12 years ago

Fixed.