From 68a29f4941aa875d5fb126fae2e5e551cd6506a7 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 16 Sep 2020 03:43:39 -0700 Subject: [PATCH] Add templates --- app/views/api/v1/grid_weapons/show.json.rabl | 6 ++++++ app/views/api/v1/party/base.json.rabl | 3 +++ app/views/api/v1/party/show.json.rabl | 3 +++ 3 files changed, 12 insertions(+) create mode 100644 app/views/api/v1/grid_weapons/show.json.rabl create mode 100644 app/views/api/v1/party/base.json.rabl create mode 100644 app/views/api/v1/party/show.json.rabl diff --git a/app/views/api/v1/grid_weapons/show.json.rabl b/app/views/api/v1/grid_weapons/show.json.rabl new file mode 100644 index 0000000..f63ca1a --- /dev/null +++ b/app/views/api/v1/grid_weapons/show.json.rabl @@ -0,0 +1,6 @@ +object @weapon + +attributes :id, + :party_id, + :weapon_id, + :position \ No newline at end of file diff --git a/app/views/api/v1/party/base.json.rabl b/app/views/api/v1/party/base.json.rabl new file mode 100644 index 0000000..71ddcd3 --- /dev/null +++ b/app/views/api/v1/party/base.json.rabl @@ -0,0 +1,3 @@ +object :party + +attributes :id, :shortcode \ No newline at end of file diff --git a/app/views/api/v1/party/show.json.rabl b/app/views/api/v1/party/show.json.rabl new file mode 100644 index 0000000..e7dddf5 --- /dev/null +++ b/app/views/api/v1/party/show.json.rabl @@ -0,0 +1,3 @@ +object @party + +extends 'api/v1/party/base' \ No newline at end of file