-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable save data into Micro Service using Gateway UI #7018
Comments
I reformatted your text as it was a pain to read, next time please paste jhipster info output as is. |
I'm not sure what you did exactly but it seems to me that you did not found the doc about generating entities in a microservices architecture. You don't need to use skip server. |
@gmarziou I was able to generate entities. I was trying to generate UI for those entities in the gateway and perform CRUD operations. |
My point is about what you did in gateway which looks strange to me but I might have misunderstood what you did exactly. Please list which command you ran on gateway. |
@gmarziou Sorry for misunderstanding. Please look at the modified description. I used |
Well the doc says to run the entity generator so |
import-jdl should work as well, but its a been a while since I tested it. But you should be using
@MathieuAA may be we should create a sample microservice JDL with a gateway and 2 microservices, WDYT? |
@jpavanaryan please try it and let us know |
@deepu105 Where should I specify |
@jpavanaryan Because the entities are declared as microservice entities ( |
@jpavanaryan I meant you shouldnt be using |
@deepu105 Agreed. |
I set up my micro-services application with one microservice and one gateway. I generated micro service entities using
jhipster import-jdl books.jh
and entities UI in gateway. I used below JDL files to generate UI for entities in the gateway, and entities server code in microservices. I was looking at docs and issues raised by other people, I couldn't find proper to documentation to connect Micro Service entities with UI for those entities in the gateway through JDL import (should be able to specify the path of micro service similar to command line process). Correct me if my syntax is incorrect. Everything went well, when open I entity page and try to save the object, it did not save it. I got following error on console.POST http://localhost:8080/api/addresses 404 error (not found)
Books Micro Service JDL file:
BookStore gateway JDL file:
Address.json
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
git version 2.13.1
node: v8.9.3
npm: 5.6.0
bower: 1.8.2
yarn: 1.3.2
Docker version 17.12.0-ce, build c97c6d6
docker-compose version 1.18.0, build 8dd22a9
Browsers and Operating System
macOS High Sierra, Chrome browser
The text was updated successfully, but these errors were encountered: