Skip to content

Instantly share code, notes, and snippets.

@jtviegas
Last active October 11, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtviegas/88880a347eafc0e48e9a89c8fe064b36 to your computer and use it in GitHub Desktop.
Save jtviegas/88880a347eafc0e48e9a89c8fe064b36 to your computer and use it in GitHub Desktop.
// /collection
// get
// 00_get_checkNumberOf_insert_checkNumberOf_delete_checkNumberOf
// post
// 10_post_getObj_checkEquals
// 11_post_not_valid_obj_422
// 12_post_not_existent_collectionId_404 (in case of nested collection)
// 13_post_to_conflic_or_constraint_409 (duplicate, etc...)
// put (upsert)
// 20_put_checkNumberOf_insert_getObj_checkEquals_checkNumberOf
// 21_put_checkNumberOf_update_getObj_checkEquals_checkNumberO
// 22_put_not_valid_obj_422
// 23_put_not_existent_collectionId_404 (in case of nested collection)
// 24_put_insert_to_conflic_or_constraint_409 (duplicate, etc...)
// 25_put_update_to_conflic_or_constraint_409 (duplicate, etc...)
// /collection/id
// get
// 30 get: already tested in 10 and 20
// 31_get_not_existent_id_404
// put
// 40_put_get_object_checkEquals
// 41_put_not_valid_422 (has id?, ...)
// 42_put_not_existent_404
// 43_put_to_conflic_or_constraint_409
// patch
// 50_patch_getObj_checkEquals
// 51_patch_not_valid_obj_422
// 52_patch_not_existent_obj_404
// 53_patch_to_conflic_or_constraint_409
// delete
// 60_delete: check numberOf, delete and check numberOf => tested in 00
// 61_delete_not_existent_id_ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment