diff options
| author | Xinhui | 2017-08-22 16:01:56 +0200 | 
|---|---|---|
| committer | Xinhui | 2017-08-22 16:01:56 +0200 | 
| commit | e793bffd18b331f2db2bb567c479fdbf02c66aec (patch) | |
| tree | 7cb066eab3db23e68659fa365b42180a5becd2b0 /app/views/api | |
| parent | 2df1767902996d43b56aa215bea15a033237b3ec (diff) | |
| download | chouette-core-e793bffd18b331f2db2bb567c479fdbf02c66aec.tar.bz2 | |
API - workbench imports controller
Diffstat (limited to 'app/views/api')
| -rw-r--r-- | app/views/api/v1/imports/index.rabl | 3 | ||||
| -rw-r--r-- | app/views/api/v1/imports/show.rabl | 6 | 
2 files changed, 9 insertions, 0 deletions
| diff --git a/app/views/api/v1/imports/index.rabl b/app/views/api/v1/imports/index.rabl new file mode 100644 index 000000000..e8cfd101e --- /dev/null +++ b/app/views/api/v1/imports/index.rabl @@ -0,0 +1,3 @@ +collection @imports + +extends "api/v1/imports/show" diff --git a/app/views/api/v1/imports/show.rabl b/app/views/api/v1/imports/show.rabl new file mode 100644 index 000000000..180894cb8 --- /dev/null +++ b/app/views/api/v1/imports/show.rabl @@ -0,0 +1,6 @@ +object @import + +attributes :id, :name, :status +node :referential_ids do |i| +  i.workbench.referentials.map(&:id) +end | 
