Skip to content

Commit

Permalink
Linting and minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tolyo committed Dec 3, 2024
1 parent eda1eca commit 2c81d06
Show file tree
Hide file tree
Showing 14 changed files with 313 additions and 60 deletions.
2 changes: 1 addition & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ paths:
/trading-accounts/{trading_account_id}:
$ref: ./endpoints/user/trading_account_by_id.yaml

# # ADMIN OPERATIONS
# ADMIN OPERATIONS
/apps/{app_entity_id}:
$ref: ./endpoints/admin/apps_by_id.yaml
/apps:
Expand Down
6 changes: 3 additions & 3 deletions demo/pkg/api/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions demo/pkg/api/docs/AdminAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

All URIs are relative to *http://localhost:4000*

Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateAdminPayment**](AdminAPI.md#CreateAdminPayment) | **Post** /apps/payments | Create admin payment
[**GetAdminPaymentById**](AdminAPI.md#GetAdminPaymentById) | **Post** /apps/payments/{payment_id} | Get payment
[**GetAppEntities**](AdminAPI.md#GetAppEntities) | **Get** /apps | Get application entities
[**GetAppEntity**](AdminAPI.md#GetAppEntity) | **Get** /apps/{app_entity_id} | Get application entity
Method | HTTP request | Description
------------------------------------------------------------|--------------------------------------|--------------------------
[**CreateAdminPayment**](AdminAPI.md#CreateAdminPayment) | **Post** /apps/payments | Create admin payment
[**GetAdminPaymentById**](AdminAPI.md#GetAdminPaymentById) | **Post** /apps/payments/{payment_id} | Get payment
[**GetAppEntities**](AdminAPI.md#GetAppEntities) | **Get** /apps | Get application entities
[**GetAppEntity**](AdminAPI.md#GetAppEntity) | **Get** /apps/{app_entity_id} | Get application entity



Expand Down Expand Up @@ -93,7 +93,7 @@ import (
)

func main() {
paymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
paymentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand All @@ -110,18 +110,18 @@ func main() {
### Path Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**paymentId** | **string** | |
Name | Type | Description | Notes
---------------|---------------------|-----------------------------------------------------------------------------|-------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**paymentId** | **string** | |

### Other Parameters

Other parameters are passed through a pointer to a apiGetAdminPaymentByIdRequest struct via the builder pattern


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
Name | Type | Description | Notes
------|------|-------------|-------


### Return type
Expand Down Expand Up @@ -224,7 +224,7 @@ import (
)

func main() {
appEntityId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |
appEntityId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
Expand All @@ -241,18 +241,18 @@ func main() {
### Path Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**appEntityId** | **string** | |
Name | Type | Description | Notes
-----------------|---------------------|-----------------------------------------------------------------------------|-------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**appEntityId** | **string** | |

### Other Parameters

Other parameters are passed through a pointer to a apiGetAppEntityRequest struct via the builder pattern


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
Name | Type | Description | Notes
------|------|-------------|-------


### Return type
Expand Down
6 changes: 3 additions & 3 deletions demo/pkg/api/docs/Trade.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | Pointer to **string** | | [optional]
Name | Type | Description | Notes
--------|-----------------------|-------------|------------
**Id** | Pointer to **string** | | [optional]

## Methods

Expand Down
3 changes: 2 additions & 1 deletion demo/pkg/api/test/api_admin_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion demo/pkg/api/test/api_public_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion demo/pkg/api/test/api_user_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,9 @@ require (
github.com/jmoiron/sqlx v1.3.5
github.com/lib/pq v1.10.9
github.com/pressly/goose/v3 v3.15.0
github.com/quickfixgo/enum v0.1.0
github.com/quickfixgo/field v0.1.0
github.com/quickfixgo/fix40 v0.1.0
github.com/quickfixgo/fix41 v0.1.0
github.com/quickfixgo/fix42 v0.1.0
github.com/quickfixgo/fix43 v0.1.0
github.com/quickfixgo/fix44 v0.1.0
github.com/quickfixgo/fix50 v0.1.0
github.com/quickfixgo/quickfix v0.9.0
github.com/quickfixgo/tag v0.1.0
github.com/shopspring/decimal v1.3.1
github.com/sirupsen/logrus v1.9.3
github.com/spf13/viper v1.16.0
Expand All @@ -28,6 +21,9 @@ require (
require (
github.com/armon/go-proxyproto v0.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/quickfixgo/enum v0.1.0 // indirect
github.com/quickfixgo/field v0.1.0 // indirect
github.com/quickfixgo/tag v0.1.0 // indirect
golang.org/x/net v0.29.0 // indirect
)

Expand All @@ -38,7 +34,6 @@ require (
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
Expand All @@ -48,7 +43,6 @@ require (
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 2c81d06

Please sign in to comment.