Skip to content

Commit

Permalink
Added more OpenAPI options for the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Feb 16, 2024
1 parent 6a181c4 commit 48c824c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,27 @@ func (r *MyInput) InTransform(context.Context) error {

```

### More OpenAPI documentation

```go
package main

import "github.com/go-fuego/fuego"

func main() {
s := fuego.NewServer()

// With more typed OpenAPI options than the ones deduced by the controller
fuego.Post(s, "/", myController).
WithDescription("This route does something").
WithSummary("This is my summary").
SetTags("MyTag").
SetDeprecated()

s.Run()
}
```

<details>
<summary>All features</summary>

Expand Down

0 comments on commit 48c824c

Please sign in to comment.