Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin4ndersen committed Oct 21, 2016
1 parent 90c7693 commit 182343c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions docs/content/index.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@ group Romcyber
</div>
What are Suave and Swagger ?
What are Suave and Swagger?
----------------------------
- [Suave](https://suave.io/) is a FSharp lightweight web server principally used to develop REST APIs
- [Suave](https://suave.io/) is a F# lightweight web server principally used to develop REST APIs
- [Swagger](http://swagger.io/) is a usefull tool helping to create interactive documentation, client SDK generation and discoverability.
Why using Swagger ?
Why use Swagger?
-------------------
- To have beautiful interactive documentations.
- To improve productivity during developments.
- To give a possibility for API users to generate clients.
- Generate beautiful API documentation, including a UI to explore and test operations.
- Improve productivity during development.
- Make it possible for API users to generate clients.
Project
-------
This project is a [POC](https://en.wikipedia.org/wiki/Proof_of_concept) helping you to document your Suave services with Swagger.
Swagger UI is embedded in resources and a webpart serving it is automatically added.
This is a [proof of concept](https://en.wikipedia.org/wiki/Proof_of_concept) to document Suave web services with Swagger.
[Swagger UI](http://swagger.io/swagger-ui/) is embedded in resources and a `WebPart` serving it is automatically added.
![Swagger UI 3](images/screen3.gif)
Expand Down
2 changes: 1 addition & 1 deletion docs/content/rest.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ let r2 = GET >=> path "/cat" >=> XML { Id=45; Name="category 45" }

(**
Allmost REST APIs response's format depends on "Accept" header sent in the request
Most REST API response formats depend on "Accept" header sent in the request
The MODEL helper will do it.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/tutorial.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let api1 =
swagger {
// syntax 1
for route in getting (simpleUrl "/time" |> thenReturns now) do
yield description Of route is "What time is it ?"
yield description Of route is "What time is it?"
}

[<EntryPoint>]
Expand Down
4 changes: 2 additions & 2 deletions examples/Suave.Swagger.PetStoreAPi/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ let api =
swagger {
// // syntax 1
for route in getting (simpleUrl "/time" |> thenReturns now) do
yield description Of route is "What time is it ?"
yield description Of route is "What time is it?"

// // another syntax
for route in getOf (path "/time2" >=> now) do
yield description Of route is "What time is it 2 ?"
yield description Of route is "What time is it 2?"
yield urlTemplate Of route is "/time2"

for route in getting <| urlFormat "/subtract/%d/%d" subtract do
Expand Down
2 changes: 1 addition & 1 deletion paket.template
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors
owners
rflechner
description
This project is a POC helping you to document your Suave services with Swagger. Swagger UI is embedded in resources and a webpart serving it is automatically added.
This is a proof of concept to document Suave web services with Swagger. Swagger UI is embedded in resources and a WebPart serving it is automatically added.
projectUrl
http://github.com/rflechner/Suave.Swagger
iconUrl
Expand Down
16 changes: 8 additions & 8 deletions slides/index.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ Using Swagger with Suave
***
## What are Suave and Swagger ?
## What are Suave and Swagger?
- [Suave](https://suave.io/) is a FSharp lightweight web server principally used to develop REST APIs
- [Swagger](http://swagger.io/) is a usefull tool helping to create interactive documentation, client SDK generation and discoverability.
- [Suave](https://suave.io/) is a F# lightweight web server principally used to develop REST APIs
- [Swagger](http://swagger.io/) is a tool for creating interactive documentation, client SDK generation and discoverability.
***
## Why using Swagger ?
## Why use Swagger?
- To have beautiful interactive documentations.
- To improve productivity during developments.
- To give a possibility for API users to generate clients.
- Generate beautiful API documentation, including a UI to explore and test operations.
- Improve productivity during development.
- Make it possible for API users to generate clients.
***
Expand Down Expand Up @@ -104,7 +104,7 @@ let api1 =
swagger {
// syntax 1
for route in getting (simpleUrl "/time" |> thenReturns now) do
yield description Of route is "What time is it ?"
yield description Of route is "What time is it?"
}

[<EntryPoint>]
Expand Down

0 comments on commit 182343c

Please sign in to comment.