aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/api
diff options
context:
space:
mode:
authorXinhui2017-08-22 12:49:55 +0200
committerXinhui2017-08-22 14:52:49 +0200
commit9a281154ea20a6450bb53880f1dd77d5139075f1 (patch)
treea9dd7c08bd500ed0f9238c0b1c5038d9cef22ec9 /app/views/api
parent49eeb2919090f26f5d16d446df6f5890fc71625a (diff)
downloadchouette-core-9a281154ea20a6450bb53880f1dd77d5139075f1.tar.bz2
API - new end point for workbenches
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/v1/workbenches/index.rabl3
-rw-r--r--app/views/api/v1/workbenches/show.rabl3
2 files changed, 6 insertions, 0 deletions
diff --git a/app/views/api/v1/workbenches/index.rabl b/app/views/api/v1/workbenches/index.rabl
new file mode 100644
index 000000000..2f0bf5fee
--- /dev/null
+++ b/app/views/api/v1/workbenches/index.rabl
@@ -0,0 +1,3 @@
+collection @workbenches
+
+extends "api/v1/workbenches/show"
diff --git a/app/views/api/v1/workbenches/show.rabl b/app/views/api/v1/workbenches/show.rabl
new file mode 100644
index 000000000..d43727809
--- /dev/null
+++ b/app/views/api/v1/workbenches/show.rabl
@@ -0,0 +1,3 @@
+object @workbench
+
+attributes :id, :name