- Added
Client.querymethod to query a given endpoint.
- Added
tox.inito help the porting to Python3.3. - Support for https (without verifiying CA).
- Added
Content-Type: application/jsonHTTP header to all post requests. - Added a do-nothing logger handler by default.
- Params are sorted by key before the GET request is dispatched. This minor change aims to improve server-side caching capabilities.
- Minor changes to the API of the function
httpbroker.get. It now accepts aauthkwarg to handle server-side authentication. - Minor changes to
scieloapi.Connector:- A custom http broker can be passed as
http_brokerkwarg during init. - Http methods are created dinamically during initialization, with user credentials bound into it. Api_key is no longer maintained by the instance.
- A custom http broker can be passed as
Client.fetch_relationsnow accepts the paramonlyto specify a subset of relations to fetch.- Now the User-Agent is set to
scieloapi/:version. - The module
scieloapi.scieloapiwas renamed toscieloapi.coreto make things clearer. - Added POST method capabilities on endpoints.
- Added the exception
exceptions.MethodNotAllowedto represent 405 status code.
- Added more unit tests (Now at 73% of code coverage).
- Minor adjusts at
setup.pyinstallation script. - New exceptions to represent http status codes.
- Better documentation at
http://docs.scielo.org/projects/scieloapipy/.
- Slumber dependency was removed. The module
scieloapi.httpbrokerwas created to deal with http requests and responses. - Better test reports now using Nosetests + coverage.
- Added method
Client.fetch_relationsto fetch all first-level relations of a document and replace the value by the full document.