The iSense api needs to be minimally compliant with the API docs. In order to do this, we need to modify the response. The responses are usually generated from the models/(relevant_model).rb:to_hash(), but I want all of the changes to exist in the directory api/v2. In order to accomplish this:
- copy
api/v1 to api/v2
- for every response, selectively remove the entries from the json/hash objects being returned using the ruby hash and ruby json api (google will be your friend @jkslebodnick )
- For now, if there are any additional elements that we need to add to the api or the response, ignore them.
The iSense api needs to be minimally compliant with the API docs. In order to do this, we need to modify the response. The responses are usually generated from the
models/(relevant_model).rb:to_hash(), but I want all of the changes to exist in the directoryapi/v2. In order to accomplish this:api/v1toapi/v2