Skip to content

Commit

Permalink
feat: enable Swagger API documentation by default and add UI toggle f…
Browse files Browse the repository at this point in the history
…or API Swagger settings
  • Loading branch information
caffeinated92 committed Jan 9, 2025
1 parent c444436 commit de804a4
Show file tree
Hide file tree
Showing 11 changed files with 3,501 additions and 41 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ type Config struct {
CacheStaticMaxAge int `mapstructure:"cache-static-max-age" toml:"cache-static-max-age" json:"-"`
TokenTimeout int `scope:"server" mapstructure:"api-token-timeout" toml:"api-token-timeout" json:"apiTokenTimeout"`
JobLogBatchSize int `mapstructure:"job-log-batch-size" toml:"job-log-batch-size" json:"jobLogBatchSize"`
ApiSwaggerEnabled bool `mapstructure:"api-swagger-enabled" toml:"api-swagger-enabled" json:"apiSwaggerEnabled"`
ApiSwaggerEnabled bool `scope:"server" mapstructure:"api-swagger-enabled" toml:"api-swagger-enabled" json:"apiSwaggerEnabled"`
//OAuthRedirectURL string `mapstructure:"api-oauth-redirect-url" toml:"git-url" json:"-"`
// BackupResticStoragePolicy string `mapstructure:"backup-restic-storage-policy" toml:"backup-restic-storage-policy" json:"backupResticStoragePolicy"`
//ProvMode string `mapstructure:"prov-mode" toml:"prov-mode" json:"provMode"` //InitContainer vs API
Expand Down
1,203 changes: 1,200 additions & 3 deletions docs/docs.go

Large diffs are not rendered by default.

1,203 changes: 1,200 additions & 3 deletions docs/swagger.json

Large diffs are not rendered by default.

Loading

0 comments on commit de804a4

Please sign in to comment.