Skip to content

Commit

Permalink
Merge pull request #17 from owncloud/change-responses
Browse files Browse the repository at this point in the history
  • Loading branch information
refs committed Dec 12, 2021
1 parent e4a9bf0 commit 0592966
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 25 deletions.
10 changes: 9 additions & 1 deletion api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ paths:
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/drive'
description: Created
default:
content:
Expand Down Expand Up @@ -280,7 +284,11 @@ paths:
description: New space values
required: true
responses:
"204":
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/drive'
description: Success
default:
content:
Expand Down
62 changes: 42 additions & 20 deletions api_drives.go

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

12 changes: 8 additions & 4 deletions docs/DrivesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Method | HTTP request | Description

## CreateDrive

> CreateDrive(ctx).Drive(drive).Execute()
> Drive CreateDrive(ctx).Drive(drive).Execute()
Create a new space of a specific type

Expand All @@ -39,6 +39,8 @@ func main() {
fmt.Fprintf(os.Stderr, "Error when calling `DrivesApi.CreateDrive``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateDrive`: Drive
fmt.Fprintf(os.Stdout, "Response from `DrivesApi.CreateDrive`: %v\n", resp)
}
```

Expand All @@ -57,7 +59,7 @@ Name | Type | Description | Notes

### Return type

(empty response body)
[**Drive**](Drive.md)

### Authorization

Expand Down Expand Up @@ -215,7 +217,7 @@ No authorization required

## UpdateDrive

> UpdateDrive(ctx, driveId).Drive(drive).Execute()
> Drive UpdateDrive(ctx, driveId).Drive(drive).Execute()
Update the space

Expand All @@ -242,6 +244,8 @@ func main() {
fmt.Fprintf(os.Stderr, "Error when calling `DrivesApi.UpdateDrive``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateDrive`: Drive
fmt.Fprintf(os.Stdout, "Response from `DrivesApi.UpdateDrive`: %v\n", resp)
}
```

Expand All @@ -265,7 +269,7 @@ Name | Type | Description | Notes

### Return type

(empty response body)
[**Drive**](Drive.md)

### Authorization

Expand Down

0 comments on commit 0592966

Please sign in to comment.