rest icon indicating copy to clipboard operation
rest copied to clipboard

Generate OpenAPI 3.0 specifications from Go code.

Results 16 rest issues
Sort by recently updated
recently updated
newest added

To add JWT authentication to an API, requires this... as per https://swagger.io/docs/specification/authentication/bearer-authentication/ ```go spec, err := api.Spec() if err != nil { log.Error("failed to create spec", slog.Any("error", err)) os.Exit(1) }...

I have done some work to make using OAuth2 more straightforward. but,only the Code Flow of OAuth2 has been thoroughly tested through Zitadel. Testing for the other OAuth2 modes is...

Hey @a-h you might be into https://github.com/lerenn/asyncapi-codegen Its asyncapi ( https://www.asyncapi.com ) and NATS Jetstream working together with code gen. I am not using it in production, but the system...

Things like 204 no content wouldn't have a response model, but I don't see how to add a nil response. Probably just need HasResponseModel(http.StatusNoContent) or accept HasResponseModel(http.StatusNoContent, nil)

Hi @a-h Adrian, Thanks for the brilliant work. Just wondering if you could add the support for including an example response for Route. Regards, Henry

Hey folks. Some weeks ago i started using a-h/rest but faced the limitation that circular/recursive structures were not really parseable due to an endless loop of `RegisterModel` which ends up...

I encounter a runtime error whenever I try to document a model with a map[string]interface{} field: ## In Main: ` api.Get(apiV1PathPrefix+"/my-route"). HasRequestModel(rest.ModelOf[model.MyRouteRequest]()). HasResponseModel(http.StatusInternalServerError, rest.ModelOf[model.MyRouteRequest]()). HasResponseModel(http.StatusInternalServerError, rest.ModelOf[respond.Error]())` ## The model: `type...

WithCustomSchemaApplier method to attach CustomeSchemaApplier interface anywhere

- the idea is if i have a `User` model inside my code, i believe implementing the `CustomSchemaApplier` inside my codebase makes the model cluttered. i think users should be...

Change the method signature for Response, Request and the NewAPI one, to add version.