Skip to content

Commit

Permalink
fixup! Add OpenAPI spec for API v1
Browse files Browse the repository at this point in the history
  • Loading branch information
michalwski committed Mar 24, 2020
1 parent d5cc50b commit 9a162b3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/mongoose_push_web/controllers/api_v1_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ defmodule MongoosePushWeb.APIv1Controller do
Operation.parameter(:id, :path, :string, "Device ID", example: "f53453455", required: true)
],
requestBody:
Operation.request_body("The push notification attributes", "application/json", Schemas.APIv1Request,
Operation.request_body(
"The push notification attributes",
"application/json",
Schemas.APIv1Request,
required: true
),
responses: %{
Expand All @@ -33,4 +36,3 @@ defmodule MongoosePushWeb.APIv1Controller do
json(conn, %{ok: "git"})
end
end

0 comments on commit 9a162b3

Please sign in to comment.