Skip to content

Commit

Permalink
Merge pull request #615 from alexanderilyin/patch-1
Browse files Browse the repository at this point in the history
Update your-first-api.md
  • Loading branch information
danielgtaylor authored Oct 18, 2024
2 parents 1d5dce7 + 3859f06 commit 965e797
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/tutorial/your-first-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ func main() {

The `path` tag tells Huma that this field should be read from the URL path. The `maxLength` tag tells Huma that the name should be no longer than 30 characters.

Download dependencies for `main.go`:

```bash
$ go mod tidy
```

Congratulations! This is a fully functional Huma API!

## Calling the API
Expand Down

0 comments on commit 965e797

Please sign in to comment.