Merge pull request #348 from sgmap/remove_useless_metadata_in_api
ApiControllers: remove useless meta data
This commit is contained in:
commit
7a434ac88e
2 changed files with 0 additions and 11 deletions
|
@ -6,9 +6,6 @@ class API::V1::DossiersController < APIController
|
||||||
error code: 401, desc: "Non authorisé"
|
error code: 401, desc: "Non authorisé"
|
||||||
error code: 404, desc: "Procédure inconnue"
|
error code: 404, desc: "Procédure inconnue"
|
||||||
|
|
||||||
meta champs: {
|
|
||||||
}
|
|
||||||
|
|
||||||
def index
|
def index
|
||||||
procedure = current_administrateur.procedures.find(params[:procedure_id])
|
procedure = current_administrateur.procedures.find(params[:procedure_id])
|
||||||
dossiers = procedure.dossiers.where.not(state: :draft).paginate(page: params[:page])
|
dossiers = procedure.dossiers.where.not(state: :draft).paginate(page: params[:page])
|
||||||
|
@ -25,10 +22,6 @@ class API::V1::DossiersController < APIController
|
||||||
error code: 401, desc: "Non authorisé"
|
error code: 401, desc: "Non authorisé"
|
||||||
error code: 404, desc: "Procédure ou dossier inconnu"
|
error code: 404, desc: "Procédure ou dossier inconnu"
|
||||||
|
|
||||||
meta champs: {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
def show
|
def show
|
||||||
procedure = current_administrateur.procedures.find(params[:procedure_id])
|
procedure = current_administrateur.procedures.find(params[:procedure_id])
|
||||||
dossier = procedure.dossiers.find(params[:id])
|
dossier = procedure.dossiers.find(params[:id])
|
||||||
|
|
|
@ -5,10 +5,6 @@ class API::V1::ProceduresController < APIController
|
||||||
error code: 401, desc: "Non authorisé"
|
error code: 401, desc: "Non authorisé"
|
||||||
error code: 404, desc: "Procédure inconnue"
|
error code: 404, desc: "Procédure inconnue"
|
||||||
|
|
||||||
meta champs: {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
def show
|
def show
|
||||||
procedure = current_administrateur.procedures.find(params[:id]).decorate
|
procedure = current_administrateur.procedures.find(params[:id]).decorate
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue