@@ -2,8 +2,8 @@
|
||||
"openapi": "3.0.3",
|
||||
"info": {
|
||||
"title": "InvestMoz — descoberta e manifestações",
|
||||
"version": "1.0.0",
|
||||
"description": "Contrato local 27/09/2026. Sessão web Laravel, email verificado e CSRF; não usa bearer independente. Accept: application/json. Respostas privadas no-store. Estados de atendimento: received,in_review,contacted,closed. API pública usa throttle api da aplicação; limites específicos indicados por operação. O middleware Laravel 13 aceita origem same-origin comprovada ou token CSRF válido; clientes devem enviar o token. Pedidos cross-site sem token são recusados. Pesquisa, referências, sugestão, mapa, comparação, exportação e favoritos partilham 60 pedidos/minuto por IP."
|
||||
"version": "1.1.0-QA-classification",
|
||||
"description": "Contrato local 27/09/2026. Sessão web Laravel, email verificado e CSRF; não usa bearer independente. Accept: application/json. Respostas privadas no-store. Estados de atendimento: received,in_review,contacted,closed. API pública usa throttle api da aplicação; limites específicos indicados por operação. O middleware Laravel 13 aceita origem same-origin comprovada ou token CSRF válido; clientes devem enviar o token. Pedidos cross-site sem token são recusados. Pesquisa, referências, sugestão, mapa, comparação, exportação e favoritos partilham 60 pedidos/minuto por IP. Delta 15/10/2026: classificação multidimensional preparada apenas em QA; as novas operações e parâmetros abaixo identificados por x-qa-only NÃO estão ativos por esta documentação."
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
@@ -207,7 +207,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["MZN", "USD", "EUR", "ZAR"]
|
||||
"enum": [
|
||||
"MZN",
|
||||
"USD",
|
||||
"EUR",
|
||||
"ZAR"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -281,7 +286,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["cluster", "corridor", "zee", "zfi"]
|
||||
"enum": [
|
||||
"cluster",
|
||||
"corridor",
|
||||
"zee",
|
||||
"zfi"
|
||||
]
|
||||
},
|
||||
"description": "Require a visible association in the selected dimension, preserving other filters."
|
||||
},
|
||||
@@ -290,12 +300,137 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["grid", "list", "map", "combined"]
|
||||
"enum": [
|
||||
"grid",
|
||||
"list",
|
||||
"map",
|
||||
"combined"
|
||||
]
|
||||
},
|
||||
"description": "Presentation state retained in URL; does not alter permission checks."
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_type",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"corridor",
|
||||
"location",
|
||||
"cluster",
|
||||
"project",
|
||||
"chain",
|
||||
"park",
|
||||
"zone",
|
||||
"sector",
|
||||
"activity"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_target",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"maxLength": 80
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"draft",
|
||||
"preliminary",
|
||||
"in_validation",
|
||||
"confirmed",
|
||||
"rejected",
|
||||
"archived",
|
||||
"revoked"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_purpose",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "authority_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "chain_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "subsector_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "category",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"investment_project",
|
||||
"real_estate",
|
||||
"land_rights",
|
||||
"business_sale",
|
||||
"business_partnership",
|
||||
"franchise",
|
||||
"concession",
|
||||
"financing",
|
||||
"supply",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "publication_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"published"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
}
|
||||
],
|
||||
"description": "Min/max exigem currency; max >= min. Sem câmbio. Facetas: facets[]=1&facets[]=2. Ordenação monetária agrupada por moeda."
|
||||
"description": "Min/max exigem currency; max >= min. Sem câmbio. Facetas: facets[]=1&facets[]=2. Ordenação monetária agrupada por moeda. Novos filtros QA: AND entre critérios; tipo/alvo/estado/finalidade na mesma associação; cadeia, atividade e entidade podem constar de outras relações da mesma oportunidade. Somente projeção editorial pública e alvos consultáveis. Map matched_count usa a mesma consulta. Filtros antigos dos pivôs continuam a representar vínculos anteriores, sem conversão automática."
|
||||
}
|
||||
},
|
||||
"/references": {
|
||||
@@ -711,7 +846,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["MZN", "USD", "EUR", "ZAR"]
|
||||
"enum": [
|
||||
"MZN",
|
||||
"USD",
|
||||
"EUR",
|
||||
"ZAR"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -785,7 +925,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["cluster", "corridor", "zee", "zfi"]
|
||||
"enum": [
|
||||
"cluster",
|
||||
"corridor",
|
||||
"zee",
|
||||
"zfi"
|
||||
]
|
||||
},
|
||||
"description": "Require a visible association in the selected dimension, preserving other filters."
|
||||
},
|
||||
@@ -794,11 +939,137 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["grid", "list", "map", "combined"]
|
||||
"enum": [
|
||||
"grid",
|
||||
"list",
|
||||
"map",
|
||||
"combined"
|
||||
]
|
||||
},
|
||||
"description": "Presentation state retained in URL; does not alter permission checks."
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_type",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"corridor",
|
||||
"location",
|
||||
"cluster",
|
||||
"project",
|
||||
"chain",
|
||||
"park",
|
||||
"zone",
|
||||
"sector",
|
||||
"activity"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_target",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"maxLength": 80
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"draft",
|
||||
"preliminary",
|
||||
"in_validation",
|
||||
"confirmed",
|
||||
"rejected",
|
||||
"archived",
|
||||
"revoked"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_purpose",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "authority_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "chain_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "subsector_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "category",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"investment_project",
|
||||
"real_estate",
|
||||
"land_rights",
|
||||
"business_sale",
|
||||
"business_partnership",
|
||||
"franchise",
|
||||
"concession",
|
||||
"financing",
|
||||
"supply",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "publication_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"published"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"description": " Novos filtros QA: AND entre critérios; tipo/alvo/estado/finalidade na mesma associação; cadeia, atividade e entidade podem constar de outras relações da mesma oportunidade. Somente projeção editorial pública e alvos consultáveis. Map matched_count usa a mesma consulta. Filtros antigos dos pivôs continuam a representar vínculos anteriores, sem conversão automática."
|
||||
}
|
||||
},
|
||||
"/map": {
|
||||
@@ -996,7 +1267,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["MZN", "USD", "EUR", "ZAR"]
|
||||
"enum": [
|
||||
"MZN",
|
||||
"USD",
|
||||
"EUR",
|
||||
"ZAR"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1070,7 +1346,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["cluster", "corridor", "zee", "zfi"]
|
||||
"enum": [
|
||||
"cluster",
|
||||
"corridor",
|
||||
"zee",
|
||||
"zfi"
|
||||
]
|
||||
},
|
||||
"description": "Require a visible association in the selected dimension, preserving other filters."
|
||||
},
|
||||
@@ -1079,11 +1360,137 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["grid", "list", "map", "combined"]
|
||||
"enum": [
|
||||
"grid",
|
||||
"list",
|
||||
"map",
|
||||
"combined"
|
||||
]
|
||||
},
|
||||
"description": "Presentation state retained in URL; does not alter permission checks."
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_type",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"corridor",
|
||||
"location",
|
||||
"cluster",
|
||||
"project",
|
||||
"chain",
|
||||
"park",
|
||||
"zone",
|
||||
"sector",
|
||||
"activity"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_target",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"maxLength": 80
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"draft",
|
||||
"preliminary",
|
||||
"in_validation",
|
||||
"confirmed",
|
||||
"rejected",
|
||||
"archived",
|
||||
"revoked"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_purpose",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "authority_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "chain_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "subsector_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "category",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"investment_project",
|
||||
"real_estate",
|
||||
"land_rights",
|
||||
"business_sale",
|
||||
"business_partnership",
|
||||
"franchise",
|
||||
"concession",
|
||||
"financing",
|
||||
"supply",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "publication_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"published"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"description": " Novos filtros QA: AND entre critérios; tipo/alvo/estado/finalidade na mesma associação; cadeia, atividade e entidade podem constar de outras relações da mesma oportunidade. Somente projeção editorial pública e alvos consultáveis. Map matched_count usa a mesma consulta. Filtros antigos dos pivôs continuam a representar vínculos anteriores, sem conversão automática."
|
||||
}
|
||||
},
|
||||
"/compare": {
|
||||
@@ -1393,7 +1800,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["MZN", "USD", "EUR", "ZAR"]
|
||||
"enum": [
|
||||
"MZN",
|
||||
"USD",
|
||||
"EUR",
|
||||
"ZAR"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -1467,7 +1879,12 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["cluster", "corridor", "zee", "zfi"]
|
||||
"enum": [
|
||||
"cluster",
|
||||
"corridor",
|
||||
"zee",
|
||||
"zfi"
|
||||
]
|
||||
},
|
||||
"description": "Require a visible association in the selected dimension, preserving other filters."
|
||||
},
|
||||
@@ -1476,11 +1893,137 @@
|
||||
"in": "query",
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": ["grid", "list", "map", "combined"]
|
||||
"enum": [
|
||||
"grid",
|
||||
"list",
|
||||
"map",
|
||||
"combined"
|
||||
]
|
||||
},
|
||||
"description": "Presentation state retained in URL; does not alter permission checks."
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_type",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"corridor",
|
||||
"location",
|
||||
"cluster",
|
||||
"project",
|
||||
"chain",
|
||||
"park",
|
||||
"zone",
|
||||
"sector",
|
||||
"activity"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_target",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"maxLength": 80
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"draft",
|
||||
"preliminary",
|
||||
"in_validation",
|
||||
"confirmed",
|
||||
"rejected",
|
||||
"archived",
|
||||
"revoked"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "association_purpose",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "authority_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "chain_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "subsector_id",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "category",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"investment_project",
|
||||
"real_estate",
|
||||
"land_rights",
|
||||
"business_sale",
|
||||
"business_partnership",
|
||||
"franchise",
|
||||
"concession",
|
||||
"financing",
|
||||
"supply",
|
||||
"other"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "publication_state",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"published"
|
||||
]
|
||||
},
|
||||
"x-qa-only": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"description": " Novos filtros QA: AND entre critérios; tipo/alvo/estado/finalidade na mesma associação; cadeia, atividade e entidade podem constar de outras relações da mesma oportunidade. Somente projeção editorial pública e alvos consultáveis. Map matched_count usa a mesma consulta. Filtros antigos dos pivôs continuam a representar vínculos anteriores, sem conversão automática."
|
||||
}
|
||||
},
|
||||
"/favourites/{id}": {
|
||||
@@ -1600,7 +2143,9 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": ["saved"]
|
||||
"required": [
|
||||
"saved"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2423,7 +2968,10 @@
|
||||
"description": "PDF/TXT até 10 MiB; máximo dez anexos."
|
||||
}
|
||||
},
|
||||
"required": ["version", "file"]
|
||||
"required": [
|
||||
"version",
|
||||
"file"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3584,7 +4132,10 @@
|
||||
"maxLength": 5000
|
||||
}
|
||||
},
|
||||
"required": ["client_key", "body"]
|
||||
"required": [
|
||||
"client_key",
|
||||
"body"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3847,7 +4398,9 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": ["status"],
|
||||
"required": [
|
||||
"status"
|
||||
],
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "string",
|
||||
@@ -3955,6 +4508,135 @@
|
||||
},
|
||||
"description": "Exige manage-portal. Alteração transaccional com auditoria. Repetir o mesmo estado não cria outra notificação."
|
||||
}
|
||||
},
|
||||
"/minhas-oportunidades/{id}/classification": {
|
||||
"servers": [
|
||||
{
|
||||
"url": "/"
|
||||
}
|
||||
],
|
||||
"get": {
|
||||
"x-qa-only": true,
|
||||
"summary": "Recuperar associações, metadados e versões anteriores autorizadas",
|
||||
"description": "Sessão web Laravel verificada; autorização view do mesmo cadastro. Resposta Cache-Control private,no-store. Sem novo papel. Candidatos a duplicação limitados ao âmbito já autorizado e a título exato; nenhuma fusão.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Sucesso"
|
||||
},
|
||||
"401": {
|
||||
"description": "Sessão necessária"
|
||||
},
|
||||
"403": {
|
||||
"description": "Âmbito, responsabilidade, MFA ou independência insuficientes"
|
||||
},
|
||||
"404": {
|
||||
"description": "Registo inexistente"
|
||||
},
|
||||
"409": {
|
||||
"description": "Versão ou associação mudou"
|
||||
},
|
||||
"422": {
|
||||
"description": "Campos ou fundamento insuficientes"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/minhas-oportunidades/{id}/classification/review": {
|
||||
"servers": [
|
||||
{
|
||||
"url": "/"
|
||||
}
|
||||
],
|
||||
"post": {
|
||||
"x-qa-only": true,
|
||||
"summary": "Decidir confirmação de uma associação, sem transição editorial",
|
||||
"description": "Validador no âmbito da oportunidade; technical_reviewer ou legal_reviewer para dimensão regulatória, MFA efetiva e independência já aprovados. CSRF. Um 200 não publica a relação nem concede ato externo. Hash da relação e versão documental vinculam a decisão. Versão anterior publicada pode ser revogada após correção privada.",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"etag",
|
||||
"hash",
|
||||
"state",
|
||||
"reason"
|
||||
],
|
||||
"properties": {
|
||||
"etag": {
|
||||
"type": "string",
|
||||
"minLength": 64,
|
||||
"maxLength": 64
|
||||
},
|
||||
"hash": {
|
||||
"type": "string",
|
||||
"minLength": 64,
|
||||
"maxLength": 64
|
||||
},
|
||||
"state": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"in_validation",
|
||||
"confirmed",
|
||||
"rejected",
|
||||
"archived",
|
||||
"revoked"
|
||||
]
|
||||
},
|
||||
"reason": {
|
||||
"type": "string",
|
||||
"minLength": 20,
|
||||
"maxLength": 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Sucesso"
|
||||
},
|
||||
"401": {
|
||||
"description": "Sessão necessária"
|
||||
},
|
||||
"403": {
|
||||
"description": "Âmbito, responsabilidade, MFA ou independência insuficientes"
|
||||
},
|
||||
"404": {
|
||||
"description": "Registo inexistente"
|
||||
},
|
||||
"409": {
|
||||
"description": "Versão ou associação mudou"
|
||||
},
|
||||
"422": {
|
||||
"description": "Campos ou fundamento insuficientes"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
@@ -4164,7 +4846,10 @@
|
||||
},
|
||||
"Draft": {
|
||||
"type": "object",
|
||||
"required": ["version", "payload"],
|
||||
"required": [
|
||||
"version",
|
||||
"payload"
|
||||
],
|
||||
"properties": {
|
||||
"version": {
|
||||
"type": "integer",
|
||||
@@ -4185,7 +4870,11 @@
|
||||
"Need": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["category_id", "option_id", "details"],
|
||||
"required": [
|
||||
"category_id",
|
||||
"option_id",
|
||||
"details"
|
||||
],
|
||||
"properties": {
|
||||
"category_id": {
|
||||
"type": "integer"
|
||||
@@ -4215,7 +4904,9 @@
|
||||
"details": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["description"],
|
||||
"required": [
|
||||
"description"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
@@ -4373,7 +5064,11 @@
|
||||
},
|
||||
"ContextInput": {
|
||||
"type": "object",
|
||||
"required": ["version", "is_education", "source_reference"],
|
||||
"required": [
|
||||
"version",
|
||||
"is_education",
|
||||
"source_reference"
|
||||
],
|
||||
"properties": {
|
||||
"version": {
|
||||
"type": "integer",
|
||||
@@ -4649,11 +5344,15 @@
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["FeatureCollection"]
|
||||
"enum": [
|
||||
"FeatureCollection"
|
||||
]
|
||||
},
|
||||
"limit": {
|
||||
"type": "integer",
|
||||
"enum": [1000]
|
||||
"enum": [
|
||||
1000
|
||||
]
|
||||
},
|
||||
"features": {
|
||||
"type": "array",
|
||||
@@ -4662,14 +5361,18 @@
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["Feature"]
|
||||
"enum": [
|
||||
"Feature"
|
||||
]
|
||||
},
|
||||
"geometry": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": ["Point"]
|
||||
"enum": [
|
||||
"Point"
|
||||
]
|
||||
},
|
||||
"coordinates": {
|
||||
"type": "array",
|
||||
@@ -4735,7 +5438,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["version", "payload"]
|
||||
"required": [
|
||||
"version",
|
||||
"payload"
|
||||
]
|
||||
},
|
||||
"CompanyDeclaration": {
|
||||
"type": "object",
|
||||
@@ -4765,11 +5471,18 @@
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["name", "country", "role"],
|
||||
"required": [
|
||||
"name",
|
||||
"country",
|
||||
"role"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["version", "payload"]
|
||||
"required": [
|
||||
"version",
|
||||
"payload"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user