eureka2 / G6K

Generator of calculation simulator (calculator)
MIT License
20 stars 19 forks source link

G6K API for multisteps simulator #15

Closed dridi93 closed 5 years ago

dridi93 commented 5 years ago

Hi, I need to declare a web service for multisteps simulator, How can i achive this !

Thanks

eureka2 commented 5 years ago

Hi,

In a multi-step simulator, the last step provides the results of the simulation and the previous steps are used to acquire the data for the simulation. So the API must be declared to the last one. It is not possible for the moment to have results in intermediate stages.

dridi93 commented 5 years ago

Hi, if i declare the API with the last step, how can i deal with other steps ? @eureka2 any solution ! Thanks

dridi93 commented 5 years ago

UP...

Any anwser please !

eureka2 commented 5 years ago

Hi,

You must provide the data expected by the API (last step) as parameters of a GET request.

These data, either you get them with the other steps, or you get them with your own forms.

dridi93 commented 5 years ago

Hi, How can i get data from previous steps, custom controller ?

eureka2 commented 5 years ago

Can you explain exactly what you want to do?

dridi93 commented 5 years ago

Okay,

If i declare the API at the last step, how can i get the previous steps data ?

dridi93 commented 5 years ago

Hi, Can i declare multi-api with diffrent names.

image

eureka2 commented 5 years ago

No, you can't !!

Please, explain what you want to do ? What's the final objective ?

dridi93 commented 5 years ago

The final objective is to declare API for a simulator with multisteps

dridi93 commented 5 years ago

no solutions !

eureka2 commented 5 years ago

No, I do not have a solution because I do not understand what you want to do.

dridi93 commented 5 years ago

Hi, Sorry For Disturb,

I installed the G6K simulator with a resource from data.gouv.fr , now i need to setup the G6K API, I have declared it like this: api: cout-certificat-immatriculation: step: 0 action: calculer This simulator have multisteps form, my question is when i declared the API to the last step, how can i get informations from the other steps. image

eureka2 commented 5 years ago

Hi,

You can not get informations from other steps. If you declare an API, it means that your installation becomes a webservice accessible by other platforms. It is up to these platforms to acquire information from their users and then compose the access request to your webservice with these informations as parameters of the request.

florientdelafoy commented 4 years ago

Hi, Sorry For Disturb,

I installed the G6K simulator with a resource from data.gouv.fr , now i need to setup the G6K API, I have declared it like this: api: cout-certificat-immatriculation: step: 0 action: calculer This simulator have multisteps form, my question is when i declared the API to the last step, how can i get informations from the other steps. image

Did you find a solution ? I'm in the same situation as you