Commit Graph

15 Commits

Author SHA1 Message Date
Christine Dodrill c050b65bbf Add X-API-Options documentation 2015-09-08 16:23:22 -07:00
Christine Dodrill 882b5b1551 Add new X-API-Options header for bare replies
Setting X-API-Options to bare will return unpacked values.

    $ curl --header "X-API-Options: bare" http://127.0.0.1:5000/last_aired
    {
        "name": "Do Princesses Dream of Magic Sheep?",
        "air_date": 1436628600,
        "season": 5,
        "episode": 13,
        "is_movie": false
    }
2015-09-08 15:48:06 -07:00
Christine Dodrill 791b7d59a0 Use a template for JSON rendering, etc 2015-09-08 15:20:22 -07:00
Christine Dodrill dc24fa6b48 Collect and report statistics about usage of the api server 2015-08-27 20:32:07 -07:00
Christine Dodrill 5d3a94bffa Show the time that the server was started in a HTTP header 2015-08-27 20:31:47 -07:00
Christine Dodrill 34682afd1e Update git rev checking 2015-08-17 14:47:34 -07:00
Christine Dodrill b5d36da2b6 Add /last_aired route
For @ask-compu
2015-08-17 14:32:05 -07:00
Christine Dodrill 24ef6f4c69 Show git commit hash of server in replies 2015-08-17 14:30:38 -07:00
Christine Dodrill 67c484ee19 split off episode manipulation code into its own module 2015-08-15 10:59:53 -07:00
Christine Dodrill d80166a420 List comprehensions are good, let's use them 2015-08-14 14:21:43 -07:00
Christine Dodrill 9489789334 Use `result`
It is idiomatic nim
2015-08-13 21:19:44 -07:00
Christine Dodrill e62d6877ad Send 406 on no search query 2015-08-13 20:56:02 -07:00
Christine Dodrill a3ea1ed922 implement remaining API calls 2015-08-13 20:51:03 -07:00
Christine Dodrill 162052d17b Serve /all 2015-08-13 19:47:00 -07:00
Christine Dodrill 71489f4f33 start nim rewrite 2015-08-13 19:20:23 -07:00