Improve injector contract content fetching #2452
Labels
feature
use for describing a new feature to develop
technical improvement
Technical refactor or improvement is needed
Description
In the application, there are two different behaviors when fetching the inject contract content:
/api/injector_contracts/search
(used when fetching all inject contracts for creating an atomic test).request answer :
api/injects/{injectId}
request answer :
Proposed Solution :
The inject contract content should always be returned as a JSON object, avoiding string parsing.
A possible improvement is to declare it as ContractContent in the backend instead of using ObjectNode, ensuring a clear and structured API response.
The text was updated successfully, but these errors were encountered: