Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/laas/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ const docTemplate = `{
}
}
},
"/obligation_maps/obligations/{id}/license": {
"/obligation_maps/obligation/{id}/license": {
"put": {
"security": [
{
Expand Down
2 changes: 1 addition & 1 deletion cmd/laas/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
}
}
},
"/obligation_maps/obligations/{id}/license": {
"/obligation_maps/obligation/{id}/license": {
"put": {
"security": [
{
Expand Down
2 changes: 1 addition & 1 deletion cmd/laas/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ paths:
summary: Get maps for an obligation
tags:
- Obligations
/obligation_maps/obligations/{id}/license:
/obligation_maps/obligation/{id}/license:
patch:
consumes:
- application/json
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/obligationmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func GetObligationMapByLicenseId(c *gin.Context) {
// @Failure 404 {object} models.LicenseError "No license or obligation found."
// @Failure 500 {object} models.LicenseError "Failure to insert new maps"
// @Security ApiKeyAuth
// @Router /obligation_maps/obligations/{id}/license [patch]
// @Router /obligation_maps/obligation/{id}/license [patch]
func PatchObligationMap(c *gin.Context) {
var obligation models.Obligation
var obMapInput models.LicenseMapInput
Expand Down Expand Up @@ -284,7 +284,7 @@ func PatchObligationMap(c *gin.Context) {
// @Failure 400 {object} models.LicenseError "Invalid json body"
// @Failure 404 {object} models.LicenseError "No license or obligation found."
// @Security ApiKeyAuth
// @Router /obligation_maps/obligations/{id}/license [put]
// @Router /obligation_maps/obligation/{id}/license [put]
func UpdateLicenseInObligationMap(c *gin.Context) {
var obligation models.Obligation
var obMapInput models.LicenseListInput
Expand Down
Loading