Skip to content

Commit b51ab16

Browse files
fix(registry-instance): add accept param for export (#584)
1 parent 1c65e71 commit b51ab16

4 files changed

Lines changed: 26 additions & 2 deletions

File tree

.openapi/registry-instance.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,13 @@
679679
"Admin"
680680
],
681681
"parameters": [
682+
{
683+
"in": "header",
684+
"name": "Accept",
685+
"schema": {
686+
"type": "string"
687+
}
688+
},
682689
{
683690
"name": "forBrowser",
684691
"description": "Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content.",

registryinstance/apiv1internal/client/api/openapi.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,13 @@ paths:
968968
description: Exports registry data as a ZIP archive.
969969
operationId: exportData
970970
parameters:
971+
- explode: false
972+
in: header
973+
name: Accept
974+
required: false
975+
schema:
976+
type: string
977+
style: simple
971978
- description: Indicates if the operation is done for a browser. If true, the
972979
response will be a JSON payload with a property called `href`. This `href`
973980
will be a single-use, naked download link suitable for use by a web browser

registryinstance/apiv1internal/client/api_admin.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

registryinstance/apiv1internal/client/docs/AdminApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ No authorization required
156156

157157
## ExportData
158158

159-
> *os.File ExportData(ctx).ForBrowser(forBrowser).Execute()
159+
> *os.File ExportData(ctx).Accept(accept).ForBrowser(forBrowser).Execute()
160160
161161
Export registry data
162162

@@ -175,11 +175,12 @@ import (
175175
)
176176

177177
func main() {
178+
accept := "accept_example" // string | (optional)
178179
forBrowser := true // bool | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content. (optional)
179180

180181
configuration := openapiclient.NewConfiguration()
181182
api_client := openapiclient.NewAPIClient(configuration)
182-
resp, r, err := api_client.AdminApi.ExportData(context.Background()).ForBrowser(forBrowser).Execute()
183+
resp, r, err := api_client.AdminApi.ExportData(context.Background()).Accept(accept).ForBrowser(forBrowser).Execute()
183184
if err != nil {
184185
fmt.Fprintf(os.Stderr, "Error when calling `AdminApi.ExportData``: %v\n", err)
185186
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -200,6 +201,7 @@ Other parameters are passed through a pointer to a apiExportDataRequest struct v
200201

201202
Name | Type | Description | Notes
202203
------------- | ------------- | ------------- | -------------
204+
**accept** | **string** | |
203205
**forBrowser** | **bool** | Indicates if the operation is done for a browser. If true, the response will be a JSON payload with a property called `href`. This `href` will be a single-use, naked download link suitable for use by a web browser to download the content. |
204206

205207
### Return type

0 commit comments

Comments
 (0)