Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(specs): update discover endpoint #3212

Merged
merged 3 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion specs/ingestion/common/schemas/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ sourceShopifyBase:
x-discriminator-fields:
- shopURL

SourceValidateResponse:
SourceWatchResponse:
type: object
additionalProperties: false
properties:
Expand Down
46 changes: 1 addition & 45 deletions specs/ingestion/paths/sources/discover.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,3 @@
get:
tags:
- sources
summary: Retrieve a stream listing
description: |
Retrieves a stream listing for a source.

Listing streams only works with sources with `type: docker` and `imageType: singer`.
operationId: getDockerSourceStreams
x-acl:
- addObject
- deleteIndex
- editSettings
parameters:
- $ref: '../../common/parameters.yml#/pathSourceID'
responses:
'200':
description: OK
content:
application/json:
schema:
title: dockerSourceStreams
type: object
additionalProperties: false
properties:
streams:
type: array
items:
$ref: '../../common/schemas/source.yml#/DockerSourceStream'
required:
- streams
'400':
$ref: '../../../common/responses/BadRequest.yml'

post:
tags:
- sources
Expand All @@ -52,16 +18,6 @@ post:
content:
application/json:
schema:
title: dockerSourceDiscover
type: object
additionalProperties: false
properties:
runID:
$ref: '../../common/schemas/common.yml#/runID'
createdAt:
$ref: '../../common/schemas/common.yml#/createdAt'
required:
- runID
- createdAt
$ref: '../../common/schemas/source.yml#/SourceWatchResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'
2 changes: 1 addition & 1 deletion specs/ingestion/paths/sources/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ post:
content:
application/json:
schema:
$ref: '../../common/schemas/source.yml#/SourceValidateResponse'
$ref: '../../common/schemas/source.yml#/SourceWatchResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'
2 changes: 1 addition & 1 deletion specs/ingestion/paths/sources/validateID.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ post:
content:
application/json:
schema:
$ref: '../../common/schemas/source.yml#/SourceValidateResponse'
$ref: '../../common/schemas/source.yml#/SourceWatchResponse'
'400':
$ref: '../../../common/responses/BadRequest.yml'
Loading