Skip to content

Commit

Permalink
Ajout de la created_at sur le point d’API qui renvoie les RDVs
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineGirard committed Nov 21, 2024
1 parent a99f182 commit 71f3208
Show file tree
Hide file tree
Showing 3 changed files with 150 additions and 141 deletions.
2 changes: 1 addition & 1 deletion app/blueprints/rdv_blueprint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class RdvBlueprint < Blueprinter::Base
identifier :id

fields :uuid, :status, :starts_at, :ends_at, :duration_in_min, :address, :context, :cancelled_at,
:max_participants_count, :users_count, :name, :collectif, :created_by_type, :created_by_id
:max_participants_count, :users_count, :name, :collectif, :created_by_type, :created_by_id, :created_at

# Retrocompatibilité avec l'ancien format de l'API pour created_by
field :created_by do |rdv, _options|
Expand Down
1 change: 1 addition & 0 deletions spec/swagger_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
cancelled_at: { type: "string", nullable: true },
collectif: { type: "boolean" },
context: { type: "string", nullable: true },
created_at: { type: "string" },
created_by: { type: "string", enum: %w[agent user file_attente prescripteur] },
created_by_type: { type: "string", enum: %w[Agent User FileAttente Prescripteur] },
created_by_id: { type: "integer" },
Expand Down
Loading

0 comments on commit 71f3208

Please sign in to comment.