Commit 533cd7eb authored by Pietro Cavassin's avatar Pietro Cavassin
Browse files

Add responsavel to bloco.json. Minor changes to models.

parent f8264c64
[submodule "bin/ensalador"]
path = bin/ensalador
url = https://gitlab.c3sl.ufpr.br/ensalamento/ensalador.git
url = git@gitlab.c3sl.ufpr.br:ensalamento/ensalador.git
branch = development
Subproject commit 383577954bf310b817507cecfcea9048396c0fbb
Subproject commit 0218b69b045f5b0c11e1eb695d93735a314be66f
......@@ -32,6 +32,9 @@
"_id": {
"type": "number",
"generated": true
},
"responsavel": {
"type": "string"
}
},
"validations": [],
......
......@@ -74,31 +74,5 @@
"property": "search"
}
],
"methods": {
"search": {
"accepts": [
{
"arg": "query",
"type": "string",
"required": true,
"description": "query string"
}
],
"returns": [
{
"arg": "retorno",
"type": "array",
"root": false,
"description": "retorno"
}
],
"description": "search",
"http": [
{
"path": "/search",
"verb": "get"
}
]
}
}
"methods": {}
}
......@@ -77,35 +77,5 @@
"property": "search"
}
],
"methods": {
"search": {
"accepts": [
{
"arg": "query",
"type": "string",
"required": true,
"description": "argumento de pesquisa",
"http": {
"source": "query"
}
}
],
"returns": [
{
"arg": "resultados",
"type": "array",
"root": false,
"description": "resultados"
}
],
"description": "pesquisa um departamento",
"http": [
{
"path": "/search",
"verb": "get"
}
]
}
}
"methods": {}
}
......@@ -154,14 +154,12 @@
"path": "/allequivalencias"
}
},
"prototype.get_equivalence_root": {
"accepts": [
{
"arg": "disciplina",
"type": "string"
}
],
"returns": {
"type": "object",
......@@ -190,34 +188,6 @@
"path": "/equivalencias"
}
},
"search": {
"accepts": [
{
"arg": "query",
"type": "string",
"required": true,
"description": "query",
"http": {
"source": "query"
}
}
],
"returns": [
{
"arg": "turmas",
"type": "array",
"root": false,
"description": "turmas"
}
],
"description": "pesquisa por turma ",
"http": [
{
"path": "/search",
"verb": "get"
}
]
},
"equivalencedpt": {
"accepts": [
{
......
......@@ -48,14 +48,12 @@
],
"methods": {
"ensalar": {
"accepts":
{
"arg": "_filtros",
"type": "object",
"required": true,
"description": "os filtros que serão aplicados para ensalar"
}
,
"accepts": {
"arg": "_filtros",
"type": "object",
"required": true,
"description": "os filtros que serão aplicados para ensalar"
},
"returns": {
"type": "object",
"root": true
......
......@@ -36,7 +36,7 @@
},
"vagas": {
"type": "number",
"default": 0
"default": 0
}
},
"validations": [],
......
......@@ -106,31 +106,6 @@
}
],
"methods": {
"search": {
"accepts": [
{
"arg": "query",
"type": "string",
"required": true,
"description": "query da bucas"
}
],
"returns": [
{
"arg": "reservas",
"type": "array",
"root": false,
"description": "todas reservas"
}
],
"description": "pesquisa por reservas",
"http": [
{
"path": "/search",
"verb": "get"
}
]
},
"reservar": {
"accepts": [
{
......
......@@ -27,7 +27,7 @@
}
},
"status_msg": {
"type": "string"
"type": "string"
}
},
"validations": [],
......
......@@ -77,10 +77,10 @@
"property": "*"
},
{
"property": "*",
"principalType": "ROLE",
"principalId": "secretario_dpto",
"permission": "ALLOW"
"permission": "ALLOW",
"property": "*"
}
],
"methods": {}
......
......@@ -48,7 +48,7 @@
},
"cursos_before_merged": {
"type": "hasAndBelongsToMany",
"model": "Curso"
"model": "Curso"
},
"turmasMergeds": {
"type": "belongsTo",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment