api: add request / response types and rename some fields

This commit is contained in:
Jimmy Zelinskie 2016-01-28 14:52:09 -05:00
parent 2f57f0d4b1
commit be9423b489

View File

@ -15,14 +15,23 @@
package v1 package v1
type ErrorResponse struct { type ErrorResponse struct {
Error Error
}
type Error struct {
Error string Error string
Type string Type string
} }
type LayerRequest struct {
Layer Layer
}
type Layer struct { type Layer struct {
Name string Name string
Path string Path string
Parent string ParentName string
Format string
IndexedByVersion int IndexedByVersion int
Features []Feature Features []Feature
} }