samedi 24 octobre 2015

REST service API using Python Bottle

I am not 100% sure if this is a fair use of stackoverflow since my question potentially could lead to an opinionated discussion on what is the correct way to do things. So if this violates any of your rules please let me know.

I am working on a sample REST service to study testing related aspects using the Python Bottle framework. I read a lot about REST but I do not have a lot of practical experience designing RESTful APIs (e.g. this http://ift.tt/1wjaZ9f). I am using Bottle the first time so there is definitely room for improvements.

I was looking for some complete examples using Bottle. These are the ones I could find:

These samples did not exactly cover what I had in mind so I started to work on a new one with the following goals in mind:

  • learn about REST APIs
  • understand the testing related aspects (using nosetests)
  • sample that can be uses as a cookie cutter template to building more usefull RESTful services
  • support Travis for continuous build

I put what I have into a repo at github: http://ift.tt/1LUeDxB

I am mainly looking to perfect the REST API and the testing related aspects. But any improvement be it coding style, structure etc. is welcome. Please note that deployment related aspects are out of scope for now. Any advice, suggestion, pull request will be highly appreciated.

Aucun commentaire:

Enregistrer un commentaire