mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
fix: Location Header in swagger api
* Add the Location Header to POST responses that use the common response Without the header, you cannot know which object you just created. Signed-off-by: Tim Hobbs <timothy.hobbs@ic-consult.com>
This commit is contained in:
parent
49c80f954c
commit
c7e547e3d2
@ -3679,6 +3679,10 @@ responses:
|
|||||||
description: 'Success'
|
description: 'Success'
|
||||||
Created:
|
Created:
|
||||||
description: 'Created'
|
description: 'Created'
|
||||||
|
headers:
|
||||||
|
Location:
|
||||||
|
type: string
|
||||||
|
description: The URL of the created resource
|
||||||
BadRequest:
|
BadRequest:
|
||||||
description: 'Bad Request'
|
description: 'Bad Request'
|
||||||
Unauthorized:
|
Unauthorized:
|
||||||
|
Loading…
Reference in New Issue
Block a user