updated test server to create the mirror object and return the new object's ID

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
changed mirror specs from url -> uri for consistency

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added implementation for creating a new mirror

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
made the default initialization parameters for mirror creation empty; use member names to assign values instead

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added the rest endpoint for reading all mirrors

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added implementation for creating a mirror

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
fixed test methods to correctly send json data with post/patch/put requests

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
implemented method to update mirror data of a specific mirror

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
added restful implementation for updating mirror data for a specific mirror

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
split route to mirrors/<id> by patch and delete for updating and deleting an object

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
implemented method to remove a mirror from the database

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
implemented rest call to remove a mirror

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
bugfix: only parse the returned data during tests to json if the string isn't empty

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>