From 04439f2366a47baef3ece5f11d3a7811d7f195e3 Mon Sep 17 00:00:00 2001 From: 5HT Date: Mon, 5 Feb 2024 23:42:12 +0200 Subject: [PATCH] meta --- lib/up_rest.ex | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/lib/up_rest.ex b/lib/up_rest.ex index af5febd..91dacae 100644 --- a/lib/up_rest.ex +++ b/lib/up_rest.ex @@ -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