You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-8Lines changed: 48 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,27 +70,67 @@ let endpoints = [
70
70
71
71
### Integration
72
72
73
-
Since `Giraffe.OpenApi` works on top of `Microsoft.AspNetCore.OpenApi` and `Swashbuckle.AspNetCore` packages, you need to do [standard steps](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/openapi):
73
+
Since `Giraffe.OpenApi` works on top of `Microsoft.AspNetCore.OpenApi` and `Scalar.AspNetCore` packages, you need to do [standard steps](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/openapi):
74
74
75
75
```fsharp
76
76
let configureApp (appBuilder: IApplicationBuilder) =
77
77
appBuilder
78
78
.UseRouting()
79
-
.UseSwagger() // For generating OpenApi spec
80
-
.UseSwaggerUI() // For viewing Swagger UI
81
79
.UseGiraffe(endpoints)
82
80
.UseGiraffe(notFoundHandler)
83
81
84
82
let configureServices (services: IServiceCollection) =
85
83
services
86
84
.AddRouting()
87
85
.AddGiraffe()
88
-
.AddEndpointsApiExplorer() // Use the API Explorer to discover and describe endpoints
Response body schema will be inferred from the types passed to `requestBody` and `responseBodies` parameters. Each `ResponseBody` object in sequence must have different status code.
109
149
110
-
`configureOperation` parameter is a function that allows you to do very low-level modifications the `OpenApiOperation` object.
150
+
`configureOperation` parameter is a function that allows you to do very low-level modifications the `OpenApiOperation` object using the new transformer pattern.
0 commit comments