diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-22 00:36:48 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-22 00:36:48 -0700 |
| commit | 2dd2a09d8c9f939639e72c62ecd4367f7a3ec059 (patch) | |
| tree | 7b071bbf672b7dc836c8c9aa1defe392f1b895f7 /app | |
| parent | c76e1f97aec3c59cd5e3563e660bbb8905e64136 (diff) | |
define json for licenses#index endpoint.
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/v1/licenses/index.jbuilder | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/app/views/v1/licenses/index.jbuilder b/app/views/v1/licenses/index.jbuilder index ff31792..5eaf41e 100644 --- a/app/views/v1/licenses/index.jbuilder +++ b/app/views/v1/licenses/index.jbuilder @@ -1,9 +1,17 @@ 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" + json.id license.well_type.id + json.acronym license.well_type.acronym + json.name license.well_type.name + end + json.location do + json.township license.location.township + json.latitude license.location.latitude + json.longitude license.location.longitude end + json.company do + json.name license.company.name + end + json.issued_at license.issued_at.to_s + json.expired_at license.expired_at.to_s end |
