feat(api): add experimental wellknown connections
This commit is contained in:
parent
6bf92aa7de
commit
5fb0470b44
33 changed files with 1070 additions and 138 deletions
|
|
@ -37,6 +37,22 @@ export const IntegrationGroup = HttpApiGroup.make("server.integration")
|
|||
}),
|
||||
),
|
||||
)
|
||||
.add(
|
||||
HttpApiEndpoint.post("integration.wellknown.add", "/api/experimental/integration/wellknown", {
|
||||
query: LocationQuery,
|
||||
payload: Schema.Struct({ url: Schema.String }),
|
||||
success: HttpApiSchema.NoContent,
|
||||
error: InvalidRequestError,
|
||||
})
|
||||
.annotateMerge(locationQueryOpenApi)
|
||||
.annotateMerge(
|
||||
OpenApi.annotations({
|
||||
identifier: "v2.experimental.integration.wellknown.add",
|
||||
summary: "Add wellknown integration",
|
||||
description: "Discover and persist an experimental wellknown integration source.",
|
||||
}),
|
||||
),
|
||||
)
|
||||
.add(
|
||||
HttpApiEndpoint.post("integration.connect.key", "/api/integration/:integrationID/connect/key", {
|
||||
params: { integrationID: Integration.ID },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue