huma.Register vs Huma.Get #400
-
|
What is the difference between huma.Register vs Huma.Get/Post etc? |
Beta Was this translation helpful? Give feedback.
Answered by
danielgtaylor
Apr 23, 2024
Replies: 1 comment 1 reply
-
|
@joa23 It's easy to get started with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
joa23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@joa23
huma.Getis just a convenience wrapper aroundhuma.Register, which allows for more customization. See here: https://github.com/danielgtaylor/huma/blob/main/huma.go#L1449-L1478It's easy to get started with
huma.Get, then move tohuma.Registerif you can to customize anything from the operation ID, custom documentation, adding tags, customizing schema generation, adjusting default body read timeouts, etc.