mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-20 01:02:50 +08:00
Indent doc properly (#713)
Hi, The sentence wasn't on the same indentation level. I was surprised when reading the sentence in the doc. Here is my little help on that :) Thank you for your work on this project J
This commit is contained in:
parent
fa5892d236
commit
3c4808a1eb
@ -8,9 +8,9 @@ Ocelot does not support...
|
|||||||
* Forwarding a host header - The host header that you send to Ocelot will not be forwarded to the downstream service. Obviously this would break everything :(
|
* Forwarding a host header - The host header that you send to Ocelot will not be forwarded to the downstream service. Obviously this would break everything :(
|
||||||
|
|
||||||
* Swagger - I have looked multiple times at building swagger.json out of the Ocelot ocelot.json but it doesnt fit into the vision
|
* Swagger - I have looked multiple times at building swagger.json out of the Ocelot ocelot.json but it doesnt fit into the vision
|
||||||
I have for Ocelot. If you would like to have Swagger in Ocelot then you must roll your own swagger.json and do the following in your
|
I have for Ocelot. If you would like to have Swagger in Ocelot then you must roll your own swagger.json and do the following in your
|
||||||
Startup.cs or Program.cs. The code sample below registers a piece of middleware that loads your hand rolled swagger.json and returns
|
Startup.cs or Program.cs. The code sample below registers a piece of middleware that loads your hand rolled swagger.json and returns
|
||||||
it on /swagger/v1/swagger.json. It then registers the SwaggerUI middleware from Swashbuckle.AspNetCore
|
it on /swagger/v1/swagger.json. It then registers the SwaggerUI middleware from Swashbuckle.AspNetCore
|
||||||
|
|
||||||
.. code-block:: csharp
|
.. code-block:: csharp
|
||||||
|
|
||||||
@ -40,4 +40,4 @@ package doesnt reload swagger.json if it changes during runtime. Ocelot's config
|
|||||||
information would not match. Unless I rolled my own Swagger implementation.
|
information would not match. Unless I rolled my own Swagger implementation.
|
||||||
|
|
||||||
If the user wants something to easily test against the Ocelot API then I suggest using Postman as a simple way to do this. It might
|
If the user wants something to easily test against the Ocelot API then I suggest using Postman as a simple way to do this. It might
|
||||||
even be possible to write something that maps ocelot.json to the postman json spec. However I don't intend to do this.
|
even be possible to write something that maps ocelot.json to the postman json spec. However I don't intend to do this.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user