diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 00:27:11 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 00:27:11 -0700 |
| commit | c76e1f97aec3c59cd5e3563e660bbb8905e64136 (patch) | |
| tree | 3cedc47880069a31cc72cf05de3a6a4141fc11d6 /app/views | |
| parent | 3db1f24191ff0a5c1638b5f89e1f0ed595185cd8 (diff) | |
start view specs for each json response.
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/v1/licenses/index.jbuilder | 9 | ||||
| -rw-r--r-- | app/views/v1/licenses/show.jbuilder | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/app/views/v1/licenses/index.jbuilder b/app/views/v1/licenses/index.jbuilder new file mode 100644 index 0000000..ff31792 --- /dev/null +++ b/app/views/v1/licenses/index.jbuilder @@ -0,0 +1,9 @@ +json.array! @licenses do |license| + json.issued_at license.issued_at.to_s + json.expired_at license.expired_at.to_s + json.well_type do + json.id 1 + json.pneumonic "NFW" + json.name "New Field Wildcat" + end +end diff --git a/app/views/v1/licenses/show.jbuilder b/app/views/v1/licenses/show.jbuilder new file mode 100644 index 0000000..98f59e8 --- /dev/null +++ b/app/views/v1/licenses/show.jbuilder @@ -0,0 +1,2 @@ +json.issued_at @license.issued_at.to_s +json.expired_at @license.expired_at.to_s |
