Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(api): Update the POST proxy request by PUT (#8243)
Browse files Browse the repository at this point in the history
Change POST by PUT request
Co-authored-by: Colin Gagnaire <cgagnaire@centreon.com>
  • Loading branch information
callapa authored Jan 9, 2020
1 parent 3583096 commit 489e91b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
44 changes: 22 additions & 22 deletions doc/API/centreon-api-v2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/API/centreon-api-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ paths:
$ref: '#/components/responses/Forbidden'
'500':
$ref: '#/components/responses/InternalServerError'
post:
put:
tags:
- Proxy
summary: "Update the default configuration of the Centreon proxy"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function getProxy(): View

/**
* @IsGranted("ROLE_API_CONFIGURATION", message="You are not authorized to access this resource")
* @Rest\Post(
* @Rest\Put(
* "/configuration/proxy",
* condition="request.attributes.get('version.is_beta') == true",
* name="configuration.proxy.updateProxy")
Expand Down

0 comments on commit 489e91b

Please sign in to comment.