Comments (5)
Sorry, I'm struggling to see the connection between microservices and the use of a parent pom or a Git submodule. Can you explain in a bit more detail please?
One area where I can see microservices complicating things is in discovering and accessing the documentation. The best approach that I've heard so far is for each microservice to serve its own documentation from the same URI (/docs
, for example). You can then piggyback on service discovery to also discover the documentation. Using hypermedia and linking to the service's documentation from its main entry point is another approach.
from spring-restdocs.
Your right, that was my confusion. The maven idea was somehow thinking that might be a way to create a docs site. Not that it was a good idea.
I could see using Zuul to route to the docs and maybe setting up a central docs UI with links to each services set of docs.
The main thing is I am finding centralized documentation to be a bit of a challenge with Microservices. I like the idea of keeping docs with each service; then providing a central UI to access them.
In the example you listed. I assume you have a route in the gateway that would like like this /api/service/**
then within the api you have a static directory/resource /api/service/docs
which would be the docs for each service.
For the centralized doc service have it utilize service discovery for listing docs for each service. This could then span to other none REST services if the same structure is implemented.
This sound close to the right track?
from spring-restdocs.
Yes, that's the kind of approach I had in mind
from spring-restdocs.
We will start working on this this week and see how it turns out. Sounds like it should actually be fairly simple. Seems as though the key is Discovery to include services within the main docs. Otherwise a point of contention will be hard coding everything.
I have not tried anything with Restdocs yet, does it support things like Feign and RestTemplate? My assumption is that each rel
can be defined in the Mock setup.
from spring-restdocs.
does it support things like Feign and RestTemplate?
No. You use Spring Test's MockMvc API to drive the tests and generation of the documentation.
from spring-restdocs.
Related Issues (20)
- Add ability to post-process operations HOT 7
- Provide the way to explicitly set requestFields required or optional HOT 9
- Upgrade to Spring Java Format 0.0.39
- Upgrade to Spring Java Format 0.0.39
- Upgrade to Spring Framework 6.0.14
- Perform compatibility testing against Framework 6.1
- UnsupportedOperationException when modifying request and response headers with Framework 6.0.9 and later
- Avoid substring creation when writing a portion of a string to a StringBuilder
- How to hide Request Body and curl particular fields like "Token"? while generating spring rest docs through rest assured approach HOT 1
- Request-body.adoc is coming as blank in case of get call HOT 3
- Except body fields how can I add others mandate fields like headers(correlationId, destination, srDate) HOT 1
- Getting issue related to query parameter. HOT 5
- Latest dependencies issue is coming while generating rest docs HOT 2
- Any concern that the underlying asciidoc gradle plugin doesn't work with Java 17 or 21? HOT 1
- Upgrade Gradle Enterprise Plugins
- Using JWT Token to Access Resource Server HOT 2
- Cannot document form parameters when using Rest Assured's MockMvc support when contentType is multipart/form-data HOT 5
- Upgrade to Gradle Enterprise Conventions 0.0.16
- Move to GitHub Actions to build and deploy snapshots
- Run Windows and Java compatibility builds on GitHub Actions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-restdocs.