Replies: 1 comment
-
Hi @s-bauer, thank you for sharing your idea. Sounds like a logical requirement. If I understand correctly, instead of the documentation being divided into micro services, do you want it to be in one document? Middlware I would suggest the following procedure. Have a setting that determines whether the documentation should be merged into one document or behave as before. However, I have the following questions (possible problems)
This is not a simple implementation. Currently, I don't need to work it out. However, I understand that this may be important to you. I will be very happy if you start implementing it. Feel free to address me with questions. (Currently I will have 3 weeks holiday, so I will answer only after that) When implementing, please do not forget about unit tests and few words to documentation in Thank you very much again. |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm building a small microservice application to discover some best practices and get used to all the new tools and technologies. I'm using Ocelot to expose one unified API to the public which hides the implementation specific microservice architecture. Ocelot works very nice for this as I can do something like this:
Public API (v1)
Public API (v2)
As you can see, one public api version bundles different versions of the specific microservice into one uniform API. With a version update to the public-api I can change any version of the downstream microservices as shown above.
I've found this Swagger Generator for Ocelot and I must say it's completely amazing! I'm just missing one important feature for my scenario which I don't think is yet implemented. I want to merge the three swagger documents of the downstream microservices into one unified Swagger Document which I could distribute to the public. It should hide that there are several microservice working together in order to provide the backend for this API.
I'm guessing it's already possible to implement this with all the customization options offered by this library. Maybe you can point me into the right direction on what's the best way of implementing this into the existing project. In case time allows it, I would be glad to contribute this feature to the library!
Beta Was this translation helpful? Give feedback.
All reactions