I want to do React Frontend << CUBA Services << api
It seems like a very simple concept. But I still can’t do it. I don’t know how it is necessary to import RestService to xxxx.tsx
Thanks for all the advice.
I want to do React Frontend << CUBA Services << api
It seems like a very simple concept. But I still can’t do it. I don’t know how it is necessary to import RestService to xxxx.tsx
Thanks for all the advice.
Hi,
The cuba-petclinic demo has the sample of calling CUBA REST service from the React screen.
Live demo: https://demo10.cuba-platform.com/petclinic-front/index.html#/visitManagement
Screen code of the screen calling petclinic_VisitTestDataCreationService: https://github.com/cuba-guides/cuba-petclinic-online-demo/blob/master/modules/front/src/app/visit/PetclinicVisitBrowser.tsx
Client stub of the service: https://github.com/cuba-guides/cuba-petclinic-online-demo/blob/master/modules/front/src/cuba/services.ts