G6K
G6K copied to clipboard
Error : API for this simulator is not implemented
Hi , i want to use the simulator as API to be implemented in an externel website , i have added the following lines to the
"\config\packages\g6k.yml" .
# api configuration
api:
cout-certificat-immatriculation:
step: 0
action: Calculer
then i have cleared the cache using this command :
php bin/console cache:pool:clear cache.global_clearer
here is the request's result using API :
http://localhost/simulateur2/calcul/cout-certificat-immatriculation/api?demarche=1&franceOuImport=1&typeVehicule=1&declareVehiculeDemonstration=2&puissanceAdministrative=52&energie=1&invalidite=2&receptionCommunautaire=1&tauxCO2=350&departement=92&declareVehiculeDeCollection=2
Thanks for your time
I found the solution , the problem was in indentation here
after that i have cleared the cach using these commands :
php bin/console cache:pool:clear cache.global_clearer
php bin/console cache:clear --no-warmup --env=dev
php bin/console cache:clear --no-warmup
Bonjour @mohamedlouay,
Je suis conscient que votre poste remonte à plus d'un an, mais j'aimerai savoir si vous pouviez m'aider à intégrer le simulateur sur un site externe avec le mode API.
D'avance merci