- Added read-write access to the darktable SQLite catalog for module parameter edits. - Implemented new endpoints for exporting images and retrieving full-resolution images. - Introduced PATCH method for updating module parameters with optional preview. - Added comprehensive tests for new API functionalities, including module retrieval and error handling. - Updated CORS headers to support new HTTP methods. - Created detailed documentation for new API endpoints and module operations.
32 lines
543 B
Plaintext
32 lines
543 B
Plaintext
meta {
|
|
name: Get Module (Not Found)
|
|
type: http
|
|
seq: 4
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/api/v1/images/{{imageId}}/modules/nonexistent_module
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{accessToken}}
|
|
}
|
|
|
|
tests {
|
|
test("returns 404", function() {
|
|
expect(res.status).to.equal(404);
|
|
});
|
|
|
|
test("error is module_not_found", function() {
|
|
expect(res.body.error).to.equal("module_not_found");
|
|
});
|
|
}
|
|
|
|
docs {
|
|
## Get Module — Not Found
|
|
|
|
Verifies 404 is returned for an operation that does not exist in the image history.
|
|
}
|