Open SigritSiht opened 2 years ago
@SigritSiht please specify both the user story and AC.
Pre-filled part is a bit confusing - pre-filled with
A note for myself - based on WSDL and OpenAPI spec endpoints, appropriate fields should be generated by GUI.
@turnerrainer So we would be using x-road and open-api WSDL to get the input parameters for any endpoint ? if so, how do you propose we do it, do we hit a wsdl url and then parse the result or are you thinking of a better approach ?
@turnerrainer So we would be using x-road and open-api WSDL to get the input parameters for any endpoint ? if so, how do you propose we do it, do we hit a wsdl url and then parse the result or are you thinking of a better approach ?
@1AhmedYasser let's start with both one- and multi-level JSONs and cover WSDLs after that.
@turnerrainer Got it, so i will be going with the following: Services that we will extract its input fields (required or optional) has to based on the OpenAPI specification
X-Road Reference: https://www.x-tee.ee/docs/live/xroad/pr-rest_x-road_message_protocol_for_rest.html X-Road PDF on Rest API: https://joinup.ec.europa.eu/sites/default/files/event/attachment/2020-10/2020-09-25-How_Petteri.pdf
For example:
So by using open api specification the flow could be done as follows:
Open API Spec Json --> Json Schema --> React UI
@turnerrainer We need this feature https://github.com/buerokratt/Ruuter/pull/104 added to Ruuter in-order to pass dynamic url's to DSL's
@1AhmedYasser Mikk will most likely need information about what user needs to provide for #12.
@SigritSiht Ok So basically when a user wants to add an endpoint he will either choose: 1) To Enter a custom Endpoint 2) To Enter a server Open Api Spec
In Case a user choose to enter a custom Endpoint a) He has to enter the endpoint url (Mandatory) b) He has to specify the endpoint type (GET or POST) (Mandatory) b) He can enter the endpoint parameters if they exists (Optional) c) He can enter the endpoint headers
In Case He choose to enter a server Open Api Spec
a) He has to enter the spec url (Mandatory)
b) He will then press on a button Ask for endpoints
c) He will be given a drop down with all the endpoints returned from the spec url json
d) When he choose an endpoint from the dropdown list, the Parameters & headers and type will be automatically
generated in the UI
1) To Enter a custom endpoint and add his own stuff (parameters, headers, type) (i.e. could be any endpoint in the world) 2) To Enter a server open api spec (Will help his automate and speed the process so that he wont have to enter each each endpoint individually)
AS an Administrative User I WANT TO get entered API / X-Road request body as pre-filled text fields SO THAT I CAN have the correct values provided to me automatically
Acceptance Criteria
DSL
GUI