Class | RestApi |
In: |
tests/lib/rest_api.rb
|
Parent: | Object |
continue_on_bad_code | [RW] | |
last_id | [RW] | |
last_response | [RW] | |
rest_obj | [RW] |
Returns the last used REST API object or creates a new one with the indicated rest_obj rest_obj: String, name of the REST resource, e.g. ‘site‘
defaults via Oats.data 'RestApi.object'. Calling RestApi.new directly does not change current.
Creates a new REST API object rest_obj: String, name of the REST resource, e.g. ‘site‘
Returns id of created object, or nil if errors Prints returned Message Raises OatsTestError if code does not match expected
input: | HASH or JSON string of input resources |
Returns response code Prints returned Message Raises OatsTestError if code does not match expected
input: | HASH or JSON string of input resources |