From be9423b489e4e694c35b187175aba10bb77012c8 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Thu, 28 Jan 2016 14:52:09 -0500 Subject: [PATCH] api: add request / response types and rename some fields --- api/v1/models.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/api/v1/models.go b/api/v1/models.go index 21159115..a1962d17 100644 --- a/api/v1/models.go +++ b/api/v1/models.go @@ -15,14 +15,23 @@ package v1 type ErrorResponse struct { + Error Error +} + +type Error struct { Error string Type string } +type LayerRequest struct { + Layer Layer +} + type Layer struct { Name string Path string - Parent string + ParentName string + Format string IndexedByVersion int Features []Feature }