unable to defeat a routing
add tests to see if association objects have the right to_json attribute
add tests to be sure that serialization of objects to json does not raise an exception
refactor register_api to be able to add sub(related) endpoints to a main endpoint