From 1434bc978f0dc2e25455974903c040230b36101b Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 10 May 2018 22:17:43 -0700 Subject: basic creator POST --- golang/gen/restapi/embedded_spec.go | 76 +++++++++++++++++++++++++++++++------ 1 file changed, 64 insertions(+), 12 deletions(-) (limited to 'golang/gen/restapi/embedded_spec.go') diff --git a/golang/gen/restapi/embedded_spec.go b/golang/gen/restapi/embedded_spec.go index 8e2a9ac4..cec33018 100644 --- a/golang/gen/restapi/embedded_spec.go +++ b/golang/gen/restapi/embedded_spec.go @@ -51,7 +51,7 @@ func init() { "201": { "description": "created", "schema": { - "$ref": "#/definitions/creator_entity" + "$ref": "#/definitions/entity_edit" } }, "400": { @@ -313,11 +313,6 @@ func init() { }, "creator_entity": { "type": "object", - "required": [ - "ident", - "state", - "name" - ], "properties": { "ident": { "type": "string" @@ -371,6 +366,23 @@ func init() { } } }, + "entity_edit": { + "type": "object", + "properties": { + "editgroup_id": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "ident": { + "type": "string" + }, + "revision": { + "type": "integer" + } + } + }, "error": { "type": "object", "required": [ @@ -427,6 +439,20 @@ func init() { } } }, + "x-entity-edit-props": { + "editgroup_id": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "ident": { + "type": "string" + }, + "revision": { + "type": "integer" + } + }, "x-entity-props": { "ident": { "type": "string" @@ -482,7 +508,7 @@ func init() { "201": { "description": "created", "schema": { - "$ref": "#/definitions/creator_entity" + "$ref": "#/definitions/entity_edit" } }, "400": { @@ -744,11 +770,6 @@ func init() { }, "creator_entity": { "type": "object", - "required": [ - "ident", - "state", - "name" - ], "properties": { "ident": { "type": "string" @@ -802,6 +823,23 @@ func init() { } } }, + "entity_edit": { + "type": "object", + "properties": { + "editgroup_id": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "ident": { + "type": "string" + }, + "revision": { + "type": "integer" + } + } + }, "error": { "type": "object", "required": [ @@ -858,6 +896,20 @@ func init() { } } }, + "x-entity-edit-props": { + "editgroup_id": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "ident": { + "type": "string" + }, + "revision": { + "type": "integer" + } + }, "x-entity-props": { "ident": { "type": "string" -- cgit v1.2.3