tests as documentation • tools — Apiary.io and literate-jasmine • live example — github.com/cymen/apiary-todo • going forward — Bob, Brian, platform team and you!
can be transformed easily to HTML • typically, files have .md or .markdown extension • look at blueprint.md and api.md on Github (automatic simple transformation)
client and service, it is purely focused on the keys not the values • cannot test values • cannot have variables (for example, create a record then use the id from the record you just created to some operation on it — maybe delete it)
written by us in markdown • open standard • tools (operate on blueprint) • dredd - run on CI against API, open source • libraries — parsing, code sample generator, validator, etc…
on interface but… • try to use first and do document DELETE with it… • markdown • Jasmine/JavaScript • open focus so free to test as desired • fall back to when need variables, test values or do multiple operations on record
potential for deleting records completely unrelated to the snapshot being tested (permissions of test account) • document DELETE in Apiary.io • dredd has command line option to opt-in to specific HTTP verbs (GET, PUT, POST, DELETE, etc) • literate-jasmine for full Create Read Update Delete (CRUD) tests
using record id from 1, validate full response including known values 3. update record using id from 1 4. delete record using id from 1 variable! value! var var
may find service like Apiary.io useful for outside developers… • Refactor APIs • correct response types • login via API • better resource locaters that for example might include snapshot id being operated on when editing an LPN node… • Need you to be onboard with these changes (cue Bob? cue Brian?)