From 3b81baaaaf51ff1c70fb1f865eef07fdb33a5950 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 14 Feb 2017 20:59:26 +0100 Subject: Adding POST /api/v1/reports API, and a UI for submitting reports --- app/views/api/v1/reports/index.rabl | 2 ++ app/views/api/v1/reports/show.rabl | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 app/views/api/v1/reports/index.rabl create mode 100644 app/views/api/v1/reports/show.rabl (limited to 'app/views/api/v1/reports') diff --git a/app/views/api/v1/reports/index.rabl b/app/views/api/v1/reports/index.rabl new file mode 100644 index 000000000..4f0794027 --- /dev/null +++ b/app/views/api/v1/reports/index.rabl @@ -0,0 +1,2 @@ +collection @reports +extends 'api/v1/reports/show' diff --git a/app/views/api/v1/reports/show.rabl b/app/views/api/v1/reports/show.rabl new file mode 100644 index 000000000..006db51e3 --- /dev/null +++ b/app/views/api/v1/reports/show.rabl @@ -0,0 +1,2 @@ +object @report +attributes :id, :action_taken -- cgit