Skip to content

Commit

Permalink
meta
Browse files Browse the repository at this point in the history
  • Loading branch information
5HT committed Feb 5, 2024
1 parent c1480f3 commit 04439f2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions lib/up_rest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ defmodule UP.HTTP do
:io.format 'UP/$meta', []
conn |> Plug.Conn.put_resp_content_type("application/json") |>
send_resp(200, encode([%{ "resourceType" => "UP", "methods" => [
"GET /account", "GET /accounts/:id", "PUT /account",
"GET /subscription", "GET /subscription/:id", "PUT /subscription/:id",
"GET /incident", "GET /incidents/:id", "PUT /incidents/:id",
"GET /maintenance", "GET /maintenance/:id", "PUT /maintenance/:id",
"GET /metric", "GET /metric/:id", "PUT /metric/:id",
"GET /component", "GET /component/:id", "PUT /component/:id"
"GET /account/:id",
"GET /subscription",
"GET /incident",
"GET /maintenance",
"GET /metric",
"GET /component",
"GET+PUT /account",
"GET+PUT+DELETE /subscription/:id",
"GET+PUT+DELETE /incidents/:id",
"GET+PUT+DELETE /maintenance/:id",
"GET+PUT+DELETE /metric/:id",
"GET+PUT+DELETE /component/:id"
], "version" => "1.0", "uri" => "https://up.erp.uno" }])) end

# PUT PATHWAY
Expand Down

0 comments on commit 04439f2

Please sign in to comment.