madslundt / NetCoreMicroservicesSample

Sample using micro services in .NET Core 3.1 Focusing on clean code
MIT License
695 stars 169 forks source link

Gateway now works with Consul #7

Closed jbonnett92 closed 3 years ago

jbonnett92 commented 4 years ago

There was a config error for consul. I also added some swagger stuff, not complete but it is a start.

Screenshot 2020-09-18 at 04 12 06

As you can see I successfully got a response from the gateway.

You may have to add this intention to allow the request:

Screenshot 2020-09-18 at 04 14 40

Something else to note, I had tested the gateway by adding the post upstream, I noticed that in the users service that the address http://localhost:8080/api/users is currently only a post to create a user. So I tried adding a user and got a error 500 (also tried with form-data and got a error 415). So a lot more work is needed to get a flow working. You can ignore the execution time, my laptop is slow.

Screenshot 2020-09-18 at 04 44 04

(update) it didn't work because I didn't migrate the database in docker, maybe you can do this automatically on startup?

jbonnett92 commented 3 years ago

I will send another pull request, I broke the reviews database link