Showing the changes to packages/plugins/openapi/src/api (2 of 265 files). Show all
Unified · Split
| @@ -166,15 +166,10 @@ export const OpenApiGroup = HttpApiGroup.make("openapi") · 165 unmodified lines | |||
| 166 | }), | 166 | }), |
| 167 | ) | 167 | ) |
| 168 | .add( | 168 | .add( |
| 169 | HttpApiEndpoint.post( | 169 | HttpApiEndpoint.post("removeSourceBinding", "/scopes/:scopeId/openapi/source-bindings/remove", { |
| 170 | "removeSourceBinding", | 170 | params: ScopeIdParam, |
| 171 | "/scopes/:scopeId/openapi/source-bindings/remove", | 171 | payload: RemoveBindingPayload, |
| 172 | { | 172 | success: Schema.Struct({ removed: Schema.Boolean }), |
| 173 | params: ScopeIdParam, | 173 | error: DomainErrors, |
| 174 | payload: RemoveBindingPayload, | 174 | }), |
| 175 | success: Schema.Struct({ removed: Schema.Boolean }), | 175 | ); |
| 176 | error: DomainErrors, | ||
| 177 | }, | ||
| 178 | ), | ||
| 179 | ) | ||
| 180 | ; | ||
| @@ -24,7 +24,9 @@ import { OpenApiGroup } from "./group"; · 23 unmodified lines | |||
| 24 | // `.addError(InternalError)` on the group — no per-handler translation. | 24 | // `.addError(InternalError)` on the group — no per-handler translation. |
| 25 | // --------------------------------------------------------------------------- | 25 | // --------------------------------------------------------------------------- |
| 26 | 26 | ||
| 27 | export class OpenApiExtensionService extends Context.Service<OpenApiExtensionService, OpenApiPluginExtension | 27 | export class OpenApiExtensionService extends Context.Service< |
| 28 | OpenApiExtensionService, | ||
| 29 | OpenApiPluginExtension | ||
| 28 | >()("OpenApiExtensionService") {} | 30 | >()("OpenApiExtensionService") {} |
| 29 | 31 | ||
| 30 | // --------------------------------------------------------------------------- | 32 | // --------------------------------------------------------------------------- |