Skip to content

Commit

Permalink
atualizando documentação
Browse files Browse the repository at this point in the history
  • Loading branch information
joellensilva committed Sep 16, 2024
1 parent 365d5dd commit 2bf6076
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 49 deletions.
36 changes: 18 additions & 18 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1347,23 +1347,6 @@ const docTemplate = `{
}
}
},
"uiapi.averagePerCapita": {
"type": "object",
"properties": {
"descontos": {
"type": "number"
},
"outras_remuneracoes": {
"type": "number"
},
"remuneracao_base": {
"type": "number"
},
"remuneracoes": {
"type": "number"
}
}
},
"uiapi.backup": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1470,6 +1453,23 @@ const docTemplate = `{
}
}
},
"uiapi.perCapitaData": {
"type": "object",
"properties": {
"descontos": {
"type": "number"
},
"outras_remuneracoes": {
"type": "number"
},
"remuneracao_base": {
"type": "number"
},
"remuneracoes": {
"type": "number"
}
}
},
"uiapi.procError": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1655,7 +1655,7 @@ const docTemplate = `{
"type": "integer"
},
"media_por_membro": {
"$ref": "#/definitions/uiapi.averagePerCapita"
"$ref": "#/definitions/uiapi.perCapitaData"
},
"meses": {
"type": "array",
Expand Down
36 changes: 18 additions & 18 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1338,23 +1338,6 @@
}
}
},
"uiapi.averagePerCapita": {
"type": "object",
"properties": {
"descontos": {
"type": "number"
},
"outras_remuneracoes": {
"type": "number"
},
"remuneracao_base": {
"type": "number"
},
"remuneracoes": {
"type": "number"
}
}
},
"uiapi.backup": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1461,6 +1444,23 @@
}
}
},
"uiapi.perCapitaData": {
"type": "object",
"properties": {
"descontos": {
"type": "number"
},
"outras_remuneracoes": {
"type": "number"
},
"remuneracao_base": {
"type": "number"
},
"remuneracoes": {
"type": "number"
}
}
},
"uiapi.procError": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -1646,7 +1646,7 @@
"type": "integer"
},
"media_por_membro": {
"$ref": "#/definitions/uiapi.averagePerCapita"
"$ref": "#/definitions/uiapi.perCapitaData"
},
"meses": {
"type": "array",
Expand Down
24 changes: 12 additions & 12 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,17 +389,6 @@ definitions:
resumo_rubricas:
$ref: '#/definitions/uiapi.itemSummary'
type: object
uiapi.averagePerCapita:
properties:
descontos:
type: number
outras_remuneracoes:
type: number
remuneracao_base:
type: number
remuneracoes:
type: number
type: object
uiapi.backup:
properties:
hash:
Expand Down Expand Up @@ -470,6 +459,17 @@ definitions:
resumo_rubricas:
$ref: '#/definitions/uiapi.itemSummary'
type: object
uiapi.perCapitaData:
properties:
descontos:
type: number
outras_remuneracoes:
type: number
remuneracao_base:
type: number
remuneracoes:
type: number
type: object
uiapi.procError:
properties:
stderr:
Expand Down Expand Up @@ -592,7 +592,7 @@ definitions:
ano:
type: integer
media_por_membro:
$ref: '#/definitions/uiapi.averagePerCapita'
$ref: '#/definitions/uiapi.perCapitaData'
meses:
items:
$ref: '#/definitions/uiapi.v2MonthTotals'
Expand Down
2 changes: 1 addition & 1 deletion papi/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ func (h handler) V2GetAggregateIndexesWithParams(c echo.Context) error {
// @Produce json
// @Success 200 {object} []aggregateIndexesByGroup "Requisição bem sucedida."
// @Failure 500 {string} string "Erro interno do servidor."
// @Router /v2/indice [get]
// @Router /v2/indice [get]
func (h handler) V2GetAggregateIndexes(c echo.Context) error {
agregado := c.QueryParam("agregado")
detalhe := c.QueryParam("detalhe")
Expand Down

0 comments on commit 2bf6076

Please sign in to comment.