add api v1 procedure controller
This commit is contained in:
parent
e40e1299ad
commit
f474c8e8e1
7 changed files with 137 additions and 0 deletions
11
app/serializers/procedure_serializer.rb
Normal file
11
app/serializers/procedure_serializer.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class ProcedureSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:libelle,
|
||||
:description,
|
||||
:organisation,
|
||||
:direction,
|
||||
:lien_demarche,
|
||||
:archived
|
||||
has_many :types_de_champ, serializer: TypeDeChampSerializer
|
||||
has_many :types_de_piece_justificative, serializer: TypeDePieceJustificativeSerializer
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue