Skip to content

Commit

Permalink
Update your-first-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderilyin authored Oct 17, 2024
1 parent 1d5dce7 commit 3859f06
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 3859f06

Please sign in to comment.