-
Notifications
You must be signed in to change notification settings - Fork 138
feat(api): added openapi endpoints #1422
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
00d61f8
feat(api): added OpenAPI response component
danpoletaev c4004ce
feat(api): added openapi endpoints documentation
danpoletaev 32d14aa
refactor: clean up
danpoletaev e72b84f
refactor: improved documentation text
danpoletaev 6a436e9
refactor: clean up
danpoletaev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
348 changes: 348 additions & 0 deletions
348
apify-api/openapi/components/schemas/actor-builds/GetOpenApiResponse.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,348 @@ | ||
| title: GetOpenApiResponse | ||
| type: object | ||
| properties: | ||
| openapi: | ||
| type: string | ||
| example: 3.0.1 | ||
| info: | ||
| type: object | ||
| properties: | ||
| title: | ||
| type: string | ||
| example: Your Magic Actor | ||
| version: | ||
| type: string | ||
| example: "1.0" | ||
| x-build-id: | ||
| type: string | ||
| example: "ID of build" | ||
| servers: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| url: | ||
| type: string | ||
| example: https://api.apify.com/v2 | ||
| paths: | ||
| type: object | ||
| properties: | ||
| /acts/<username>~<actor>/run-sync-get-dataset-items: | ||
| type: object | ||
| properties: | ||
| post: | ||
| type: object | ||
| properties: | ||
| operationId: | ||
| type: string | ||
| example: run-sync-get-dataset-items | ||
| x-openai-isConsequential: | ||
| type: boolean | ||
| example: false | ||
| summary: | ||
| type: string | ||
| example: Executes an Actor, waits for its completion, and returns Actor's dataset items in response. | ||
| tags: | ||
| type: array | ||
| items: | ||
| type: string | ||
| example: ["Run Actor"] | ||
| requestBody: | ||
| type: object | ||
| properties: | ||
| required: | ||
| type: boolean | ||
| example: true | ||
| content: | ||
| type: object | ||
| properties: | ||
| application/json: | ||
| type: object | ||
| properties: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| $ref: | ||
| type: string | ||
| example: '#/components/schemas/inputSchema' | ||
| parameters: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| example: token | ||
| in: | ||
| type: string | ||
| example: query | ||
| required: | ||
| type: boolean | ||
| example: true | ||
| schema: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| description: | ||
| type: string | ||
| example: Enter your Apify token here | ||
| responses: | ||
| type: object | ||
| properties: | ||
| '200': | ||
| type: object | ||
| properties: | ||
| description: | ||
| type: string | ||
| example: OK | ||
| /acts/<username>~<actor>/runs: | ||
| type: object | ||
| properties: | ||
| post: | ||
| type: object | ||
| properties: | ||
| operationId: | ||
| type: string | ||
| example: runs | ||
| x-openai-isConsequential: | ||
| type: boolean | ||
| example: false | ||
| summary: | ||
| type: string | ||
| example: Executes an Actor and returns information about the initiated run in response. | ||
| tags: | ||
| type: array | ||
| items: | ||
| type: string | ||
| example: ["Run Actor"] | ||
| requestBody: | ||
| type: object | ||
| properties: | ||
| required: | ||
| type: boolean | ||
| example: true | ||
| content: | ||
| type: object | ||
| properties: | ||
| application/json: | ||
| type: object | ||
| properties: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| $ref: | ||
| type: string | ||
| example: '#/components/schemas/inputSchema' | ||
| parameters: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| in: | ||
| type: string | ||
| example: query | ||
| required: | ||
| type: boolean | ||
| schema: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| description: | ||
| type: string | ||
| responses: | ||
| type: object | ||
| properties: | ||
| '200': | ||
| type: object | ||
| properties: | ||
| description: | ||
| type: string | ||
| example: OK | ||
| content: | ||
| type: object | ||
| properties: | ||
| application/json: | ||
| type: object | ||
| properties: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| $ref: | ||
| type: string | ||
| example: '#/components/schemas/runsResponseSchema' | ||
| /acts/<username>~<actor>/run-sync: | ||
| type: object | ||
| properties: | ||
| post: | ||
| type: object | ||
| properties: | ||
| operationId: | ||
| type: string | ||
| example: run-sync | ||
| x-openai-isConsequential: | ||
| type: boolean | ||
| example: false | ||
| summary: | ||
| type: string | ||
| example: Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response. | ||
| tags: | ||
| type: array | ||
| items: | ||
| type: string | ||
| example: ["Run Actor"] | ||
| requestBody: | ||
| type: object | ||
| properties: | ||
| required: | ||
| type: boolean | ||
| example: true | ||
| content: | ||
| type: object | ||
| properties: | ||
| application/json: | ||
| type: object | ||
| properties: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| $ref: | ||
| type: string | ||
| example: '#/components/schemas/inputSchema' | ||
| parameters: | ||
| type: array | ||
| items: | ||
| type: object | ||
| properties: | ||
| name: | ||
| type: string | ||
| in: | ||
| type: string | ||
| example: query | ||
| required: | ||
| type: boolean | ||
| schema: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| description: | ||
| type: string | ||
| responses: | ||
| type: object | ||
| properties: | ||
| '200': | ||
| type: object | ||
| properties: | ||
| description: | ||
| type: string | ||
| example: OK | ||
| components: | ||
| type: object | ||
| properties: | ||
| schemas: | ||
| type: object | ||
| properties: | ||
| inputSchema: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: object | ||
| runsResponseSchema: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: object | ||
| properties: | ||
| type: object | ||
| properties: | ||
| data: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: object | ||
| properties: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| actId: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| userId: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| startedAt: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| format: | ||
| type: string | ||
| example: date-time | ||
| example: | ||
| type: string | ||
| example: "2025-01-08T00:00:00.000Z" | ||
| finishedAt: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| format: | ||
| type: string | ||
| example: date-time | ||
| example: | ||
| type: string | ||
| example: "2025-01-08T00:00:00.000Z" | ||
| status: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| example: | ||
| type: string | ||
| example: "READY" | ||
| meta: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: object | ||
| properties: | ||
| type: object | ||
| properties: | ||
| origin: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
| example: | ||
| type: string | ||
| example: "API" | ||
| userAgent: | ||
| type: object | ||
| properties: | ||
| type: | ||
| type: string | ||
| example: string | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the quoting is inconsistent here, lets use single quotes everywhere (there are more places using double quotes, not just in this file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, fixed in the files I've changed, but it is harder to change everywhere else. I think it should be fixed in lint, but we'll need to set up yaml lint for that...