RESTinstance is a Robot Framework library for testing RESTful JSON APIs. It provides keywords for GET, POST, PUT, PATCH, DELETE and supports JSON schema validation. Currently at version 1.8.0, released periodically with compatible changes.
pip install robotframework-restinstanceVerified import paths — ran on the pinned version, not inferred.
Minimal example: initialize RESTinstance and perform GET/POST requests. Note: RESTinstance methods return requests.Response objects.
Use requests library directly for standalone Python API testing, or use within Robot Framework tests.
Ensure schema files exist and are valid JSON Schema. If you don't need schema validation, omit the 'schema' parameter.
Always pass body as a JSON string (e.g., json.dumps(dict)) or use the `json` parameter if available (check docs).
Pass `verify=False` in the keyword arguments (e.g., `api.get(url, None, verify=False)`).