Technical Story
As any installer component, I want to prepare a request body that eventually gets sent to the API.
Description
Currently, the functions that prepare the request body to be sent to the API return either a Config object or simply an object. We need to create the custom request body types for each scenario, and adapt the config.service.ts file's save function to accept these request body object types.
This can be done by creating an interface, such as ConfigReqInterface as well as adapting the ServiceInterface to take a ReqBodyInterface. See the below images provided by @zimaah for an example on this:



Requirements
Blocked by
N/A
Acceptance criteria
Scenario: User about make use of functionality that requires an API call
Given: For example, form submission (repositories, alerts, subchain, sources)
When: Form data correctly inputted
Then: Data is submitted successfully and updated in Mongo
Technical Story
As any installer component, I want to prepare a request body that eventually gets sent to the API.
Description
Currently, the functions that prepare the request body to be sent to the API return either a
Configobject or simply anobject. We need to create the custom request body types for each scenario, and adapt theconfig.service.tsfile'ssavefunction to accept these request body object types.This can be done by creating an interface, such as
ConfigReqInterfaceas well as adapting theServiceInterfaceto take aReqBodyInterface. See the below images provided by @zimaah for an example on this:Requirements
Blocked by
N/A
Acceptance criteria
Scenario: User about make use of functionality that requires an API call
Given: For example, form submission (repositories, alerts, subchain, sources)
When: Form data correctly inputted
Then: Data is submitted successfully and updated in Mongo