jleung51-coursework / phaser

C++ servers utilizing the Microsoft Azure Storage Client Library.
MIT License
1 stars 0 forks source link

Specify BasicServer GET returning an empty JSON array if specific criteria are not found #27

Closed jleung51 closed 8 years ago

jleung51 commented 8 years ago

As stated in the specification for the BasicServer GET operations, an empty JSON array should be returned (with status_codes::OK, as opposed to an error code) if some specific criteria is not found.

  1. Operation: Get all entities from a partition

    status_codes::OK (200): Table found and entities in the selected partition are returned in a JSON array. If there are no entries in the specified partition, return an empty JSON array.

    "No entries in the specified partition" means that no entity has that partition.

  2. Get all entities which have specified properties (regardless of their values)

    status_codes::OK (200): Table found and entities with the selected properties are returned in a JSON array. If there are no entries with the specified properties, return an empty JSON array.

This is not documented in the code, and should be.

jleung51 commented 8 years ago

Working on it in the branch basic-get-no_partition!

jleung51 commented 8 years ago

Resolved in above-referenced merge.