Skip to content

Commit 8e8b6e0

Browse files
authored
Merge pull request #32 from jiaozifs/feat/impl_object_api
feat: impl getobject and delete object
2 parents 552eb07 + 24a532d commit 8e8b6e0

File tree

6 files changed

+322
-127
lines changed

6 files changed

+322
-127
lines changed

api/custom_response.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ func (response *JiaozifsResponse) CodeMsg(code int, msg string) {
3838
response.WriteHeader(code)
3939
_, _ = response.Write([]byte(msg))
4040
}
41+
func (response *JiaozifsResponse) Code(code int) {
42+
response.WriteHeader(code)
43+
}

api/jiaozifs.gen.go

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

api/swagger.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,6 @@ paths:
254254
schema:
255255
type: string
256256
pattern: '^bytes=((\d*-\d*,? ?)+)$'
257-
- in: query
258-
name: presign
259-
required: false
260-
schema:
261-
type: boolean
262257
responses:
263258
200:
264259
description: object content
@@ -395,12 +390,12 @@ paths:
395390

396391
parameters:
397392
- in: query
398-
name: storageClass
399-
description: Deprecated, this capability will not be supported in future releases.
400-
required: false
401-
deprecated: true
393+
name: wipID
394+
description: working in process
395+
required: true
402396
schema:
403397
type: string
398+
format: uuid
404399
- in: header
405400
name: If-None-Match
406401
description: |
@@ -436,6 +431,14 @@ paths:
436431
- objects
437432
operationId: deleteObject
438433
summary: delete object. Missing objects will not return a NotFound error.
434+
parameters:
435+
- in: query
436+
name: wipID
437+
description: working in process
438+
required: true
439+
schema:
440+
type: string
441+
format: uuid
439442
responses:
440443
204:
441444
description: object deleted successfully

0 commit comments

Comments
 (0)