Versions in this module Expand all Collapse all v0 v0.0.27 Nov 13, 2026 v0.0.26 Nov 7, 2026 v0.0.25 Oct 31, 2026 v0.0.24 Oct 17, 2026 v0.0.23 Sep 25, 2026 v0.0.22 Sep 19, 2026 v0.0.21 Sep 12, 2026 v0.0.20 Sep 5, 2026 v0.0.19 Aug 29, 2026 v0.0.18 Aug 22, 2026 Changes in this version + const MaxRequestBodyBytes + func BuildExport(snapshot DocumentSnapshot, server string) ([]byte, error) + func GatewayServer(c *app.Context, slug string) string + func LimitRequestBody(next gin.HandlerFunc) gin.HandlerFunc + type DocumentResponse struct + Export json.RawMessage + type DocumentSnapshot struct + Routes []RouteDocument + Service ServiceDocument + type Handler struct + App app.Application + Finder OpenAPIDocumentFinder + Importer Importer + func (h *Handler) Get(c *app.Context, req IDRequest) (DocumentResponse, error) + func (h *Handler) Import(c *app.Context, req ImportCommand) (api.Created[ImportResult], error) + func (h *Handler) Preview(c *app.Context, req PreviewRequest) (PreviewResponse, error) + func (h *Handler) Update(c *app.Context, req UpdateRequest) (DocumentResponse, error) + type IDRequest struct + ID uint + type ImportCommand struct + BackendName string + Choices []coreopenapi.RouteGroupChoice + Document json.RawMessage + PricePerCall int64 + SelectedServer *int + Slug string + Upstream UpstreamDraft + type ImportPublisher interface + PublishRoute func(context.Context, string, models.APIRoute) error + PublishService func(context.Context, string, models.APIService) error + PublishUpstream func(context.Context, string, models.APIUpstream) error + type ImportResult struct + BackendID uint + RouteIDs []uint + ServiceID uint + UpstreamID uint + type Importer struct + Publisher ImportPublisher + UpstreamCreator api_upstream.Creator + func (i Importer) Import(ctx dao.Context, cmd ImportCommand) (ImportResult, error) + type OpenAPIDocumentFinder struct + func (OpenAPIDocumentFinder) Find(ctx dao.Context, serviceID uint) (DocumentSnapshot, error) + func (OpenAPIDocumentFinder) FindVisible(ctx dao.Context, serviceID uint, routeIDs *[]uint) (DocumentSnapshot, error) + func (OpenAPIDocumentFinder) FindVisibleInTx(tx dao.Context, serviceID uint, routeIDs *[]uint) (DocumentSnapshot, error) + type PreviewRequest struct + Document json.RawMessage + type PreviewResponse struct + Problems []Problem + Routes []RouteDraft + Servers []ServerDraft + Service ServiceDraft + type Problem = coreopenapi.Problem + type RouteDocument struct + ID uint + Paths map[string]models.OpenAPIPathItem + Slug string + UpdatedAt int64 + UpstreamPath string + type RouteDocumentUpdate struct + ID uint + Paths map[string]models.OpenAPIPathItem + UpdatedAt int64 + type RouteDraft struct + AllowedMethods []string + DisplayName string + OperationCount int + PathCount int + Paths []string + PublicPaths map[string]string + Slug string + UpstreamPath string + type ServerDraft struct + Description string + Index int + URL string + type ServiceDocument struct + Description string + Document models.OpenAPIServiceDocument + ID uint + Name string + Slug string + UpdatedAt int64 + type ServiceDocumentUpdate struct + Document models.OpenAPIServiceDocument + ID uint + UpdatedAt int64 + type ServiceDraft struct + Description string + Name string + Slug string + type UpdateRequest struct + ID uint + Routes []RouteDocumentUpdate + Service ServiceDocumentUpdate + type UpstreamDraft struct + AuthType models.APIUpstreamAuthType + BaseURL string + Credential *api_upstream.APIUpstreamCredential + HeaderOverride map[string]string + Name string + Priority int + ProxyURL *string + Status *int + Weight int