Skip to content

Commit

Permalink
feat: update client with groups get list (autogenned code)
Browse files Browse the repository at this point in the history
  • Loading branch information
1riatsila1 committed Sep 9, 2024
1 parent 68b2bef commit faeee60
Show file tree
Hide file tree
Showing 26 changed files with 1,175 additions and 63 deletions.
4 changes: 4 additions & 0 deletions pkg/config-api-client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ configuration.go
docs/ConfigurationAPI.md
docs/ErrorDetail.md
docs/ErrorResponse.md
docs/GroupsGetItem.md
docs/GroupsGetResponse.md
docs/GroupsPostRequest.md
docs/GroupsPostResponse.md
docs/LivenessResponse.md
Expand All @@ -19,6 +21,8 @@ go.mod
go.sum
model_error_detail.go
model_error_response.go
model_groups_get_item.go
model_groups_get_response.go
model_groups_post_request.go
model_groups_post_response.go
model_liveness_response.go
Expand Down
5 changes: 4 additions & 1 deletion pkg/config-api-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Nice description goes here
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.

- API version: 1.4.0
- API version: 1.5.0
- Package version: 1.0.0
- Generator version: 7.8.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.GoClientCodegen
Expand Down Expand Up @@ -83,13 +83,16 @@ Class | Method | HTTP request | Description
*ConfigurationAPI* | [**GetLivezHealthLivezGet**](docs/ConfigurationAPI.md#getlivezhealthlivezget) | **Get** /health/livez | Live health check
*ConfigurationAPI* | [**GetReadyzHealthReadyzGet**](docs/ConfigurationAPI.md#getreadyzhealthreadyzget) | **Get** /health/readyz | Ready health check
*ConfigurationAPI* | [**GetStatusHealthStatusGet**](docs/ConfigurationAPI.md#getstatushealthstatusget) | **Get** /health/status | Service stats endpoint
*ConfigurationAPI* | [**GroupsGetConfigurationAppV1GroupsGet**](docs/ConfigurationAPI.md#groupsgetconfigurationappv1groupsget) | **Get** /configuration/app/v1/groups | Groups Get
*ConfigurationAPI* | [**GroupsPostConfigurationAppV1GroupsPost**](docs/ConfigurationAPI.md#groupspostconfigurationappv1groupspost) | **Post** /configuration/app/v1/groups | Groups Post


## Documentation For Models

- [ErrorDetail](docs/ErrorDetail.md)
- [ErrorResponse](docs/ErrorResponse.md)
- [GroupsGetItem](docs/GroupsGetItem.md)
- [GroupsGetResponse](docs/GroupsGetResponse.md)
- [GroupsPostRequest](docs/GroupsPostRequest.md)
- [GroupsPostResponse](docs/GroupsPostResponse.md)
- [LivenessResponse](docs/LivenessResponse.md)
Expand Down
120 changes: 113 additions & 7 deletions pkg/config-api-client/api/.openapi.source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
email: [email protected]
license:
name: No idea, but we need something
version: 1.4.0
version: 1.5.0
servers:
- url: https://api.capenetworks.com
- url: https://api.staging.capedev.io
Expand Down Expand Up @@ -66,6 +66,60 @@ paths:
tags:
- health
/configuration/app/v1/groups:
get:
operationId: groups_get_configuration_app_v1_groups_get
summary: Groups Get
description: Lists groups matching provided criteria
parameters:
- name: uid
in: query
required: false
schema:
anyOf:
- type: string
nullable: true
title: Uid
- name: cursor
in: query
required: false
schema:
anyOf:
- type: string
nullable: true
title: Cursor
- name: limit
in: query
required: false
schema:
type: integer
default: 50
title: Limit
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/GroupsGetResponse'
4XX:
description: Client Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
5XX:
description: Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security:
- HTTPBearer: []
tags:
- api
- configuration
- v1
- groups
post:
operationId: groups_post_configuration_app_v1_groups_post
summary: Groups Post
Expand Down Expand Up @@ -113,17 +167,25 @@ paths:
in: query
required: false
schema:
type: string
anyOf:
- type: string
nullable: true
title: Uid
- name: cursor
in: query
required: false
schema:
type: string
anyOf:
- type: string
nullable: true
title: Cursor
- name: limit
in: query
required: false
schema:
type: integer
default: 50
title: Limit
responses:
'200':
description: Successful Response
Expand All @@ -150,6 +212,7 @@ paths:
- configuration
- v1
- sensor-group-assignments
x-stability-level: alpha
components:
schemas:
ErrorDetail:
Expand All @@ -172,6 +235,41 @@ components:
required:
- detail
title: ErrorResponse
GroupsGetItem:
type: object
properties:
uid:
type: string
title: Uid
name:
type: string
title: Name
path:
type: string
title: Path
parent_uid:
type: string
title: Parent Uid
required:
- uid
- name
- path
- parent_uid
title: GroupsGetItem
GroupsGetResponse:
type: object
properties:
pagination:
$ref: '#/components/schemas/PaginationDetails'
groups:
type: array
items:
$ref: '#/components/schemas/GroupsGetItem'
title: Groups
required:
- pagination
- groups
title: GroupsGetResponse
GroupsPostRequest:
type: object
properties:
Expand Down Expand Up @@ -224,16 +322,24 @@ components:
type: integer
title: Limit
next:
type: string
anyOf:
- type: string
nullable: true
title: Next
previous:
type: string
anyOf:
- type: string
nullable: true
title: Previous
first:
type: string
anyOf:
- type: string
nullable: true
title: First
last:
type: string
anyOf:
- type: string
nullable: true
title: Last
required:
- limit
Expand Down
Loading

0 comments on commit faeee60

Please sign in to comment.