-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenAPI documentation for /v1/functions
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
presto-openapi/src/main/resources/function_signatures.yaml
This file contains 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,20 @@ | ||
openapi: 3.0.0 | ||
info: | ||
title: Presto function signatures API | ||
description: API for retrieving function signatures in Presto. | ||
version: "1" | ||
servers: | ||
- url: http://localhost:8080 | ||
description: Presto endpoint when running locally | ||
paths: | ||
/v1/functions: | ||
get: | ||
summary: Returns the list of function signatures. | ||
description: This endpoint retrieves the supported function signatures from a Prestissimo cluster. | ||
responses: | ||
'200': | ||
description: List of function signatures. | ||
content: | ||
application/json: | ||
schema: | ||
$ref: './schemas.yaml/#/components/schemas/JsonBasedUdfFunctionMetadata' |
This file contains 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