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

[OPIK-548] Autogenerated code #873

Merged
merged 1 commit into from
Dec 12, 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
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public Page<ProviderApiKey> find(@NonNull String workspaceId) {
}

@Override
public ProviderApiKey saveApiKey(@NonNull ProviderApiKey providerApiKey, @NonNull String userName, @NonNull String workspaceId) {
public ProviderApiKey saveApiKey(@NonNull ProviderApiKey providerApiKey, @NonNull String userName,
@NonNull String workspaceId) {
UUID apiKeyId = idGenerator.generateId();

var newProviderApiKey = providerApiKey.toBuilder()
Expand Down Expand Up @@ -102,8 +103,9 @@ public ProviderApiKey saveApiKey(@NonNull ProviderApiKey providerApiKey, @NonNul
}

@Override
public void updateApiKey(@NonNull UUID id, @NonNull ProviderApiKeyUpdate providerApiKeyUpdate, @NonNull String userName,
@NonNull String workspaceId) {
public void updateApiKey(@NonNull UUID id, @NonNull ProviderApiKeyUpdate providerApiKeyUpdate,
@NonNull String userName,
@NonNull String workspaceId) {

template.inTransaction(WRITE, handle -> {

Expand Down
123 changes: 68 additions & 55 deletions apps/opik-documentation/documentation/rest_api/opik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,53 @@ paths:
responses:
"204":
description: No Content
/v1/private/llm-provider-key:
get:
tags:
- LlmProviderKey
summary: Find LLM Provider's ApiKeys
description: Find LLM Provider's ApiKeys
operationId: findLlmProviderKeys
responses:
"200":
description: LLMProviderApiKey resource
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectPage_Public'
post:
tags:
- LlmProviderKey
summary: Store LLM Provider's ApiKey
description: Store LLM Provider's ApiKey
operationId: storeLlmProviderApiKey
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProviderApiKey_Write'
responses:
"201":
description: Created
headers:
Location:
required: true
style: simple
schema:
type: string
example: "${basePath}/v1/private/proxy/api_key/{apiKeyId}"
"401":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
"403":
description: Access forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
/v1/private/llm-provider-key/{id}:
get:
tags:
Expand All @@ -893,7 +940,7 @@ paths:
format: uuid
responses:
"200":
description: ProviderApiKey resource
description: LLMProviderApiKey resource
content:
application/json:
schema:
Expand Down Expand Up @@ -943,40 +990,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
/v1/private/llm-provider-key:
post:
tags:
- LlmProviderKey
summary: Store LLM Provider's ApiKey
description: Store LLM Provider's ApiKey
operationId: storeLlmProviderApiKey
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProviderApiKey_Write'
responses:
"201":
description: Created
headers:
Location:
required: true
style: simple
schema:
type: string
example: "${basePath}/v1/private/proxy/api_key/{apiKeyId}"
"401":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
"403":
description: Access forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
/v1/private/projects:
get:
tags:
Expand Down Expand Up @@ -3751,6 +3764,26 @@ components:
type: number
min:
type: number
ProjectPage_Public:
type: object
properties:
page:
type: integer
format: int32
size:
type: integer
format: int32
total:
type: integer
format: int64
content:
type: array
items:
$ref: '#/components/schemas/Project_Public'
sortableBy:
type: array
items:
type: string
ProviderApiKey_Public:
type: object
properties:
Expand Down Expand Up @@ -3863,26 +3896,6 @@ components:
type: string
description:
type: string
ProjectPage_Public:
type: object
properties:
page:
type: integer
format: int32
size:
type: integer
format: int32
total:
type: integer
format: int64
content:
type: array
items:
$ref: '#/components/schemas/Project_Public'
sortableBy:
type: array
items:
type: string
Project_Public:
required:
- name
Expand Down
123 changes: 68 additions & 55 deletions sdks/code_generation/fern/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,53 @@ paths:
responses:
"204":
description: No Content
/v1/private/llm-provider-key:
get:
tags:
- LlmProviderKey
summary: Find LLM Provider's ApiKeys
description: Find LLM Provider's ApiKeys
operationId: findLlmProviderKeys
responses:
"200":
description: LLMProviderApiKey resource
content:
application/json:
schema:
$ref: '#/components/schemas/ProjectPage_Public'
post:
tags:
- LlmProviderKey
summary: Store LLM Provider's ApiKey
description: Store LLM Provider's ApiKey
operationId: storeLlmProviderApiKey
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProviderApiKey_Write'
responses:
"201":
description: Created
headers:
Location:
required: true
style: simple
schema:
type: string
example: "${basePath}/v1/private/proxy/api_key/{apiKeyId}"
"401":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
"403":
description: Access forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
/v1/private/llm-provider-key/{id}:
get:
tags:
Expand All @@ -893,7 +940,7 @@ paths:
format: uuid
responses:
"200":
description: ProviderApiKey resource
description: LLMProviderApiKey resource
content:
application/json:
schema:
Expand Down Expand Up @@ -943,40 +990,6 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
/v1/private/llm-provider-key:
post:
tags:
- LlmProviderKey
summary: Store LLM Provider's ApiKey
description: Store LLM Provider's ApiKey
operationId: storeLlmProviderApiKey
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ProviderApiKey_Write'
responses:
"201":
description: Created
headers:
Location:
required: true
style: simple
schema:
type: string
example: "${basePath}/v1/private/proxy/api_key/{apiKeyId}"
"401":
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
"403":
description: Access forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorMessage'
/v1/private/projects:
get:
tags:
Expand Down Expand Up @@ -3751,6 +3764,26 @@ components:
type: number
min:
type: number
ProjectPage_Public:
type: object
properties:
page:
type: integer
format: int32
size:
type: integer
format: int32
total:
type: integer
format: int64
content:
type: array
items:
$ref: '#/components/schemas/Project_Public'
sortableBy:
type: array
items:
type: string
ProviderApiKey_Public:
type: object
properties:
Expand Down Expand Up @@ -3863,26 +3896,6 @@ components:
type: string
description:
type: string
ProjectPage_Public:
type: object
properties:
page:
type: integer
format: int32
size:
type: integer
format: int32
total:
type: integer
format: int64
content:
type: array
items:
$ref: '#/components/schemas/Project_Public'
sortableBy:
type: array
items:
type: string
Project_Public:
required:
- name
Expand Down
Loading
Loading