summaryrefslogtreecommitdiffstats
path: root/golang/restapi/embedded_spec.go
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-09 18:38:24 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-09 18:38:35 -0700
commitfc3d70a256dbd45fdd54a21efa6abc49b554e8e2 (patch)
tree5b1e8bdd9dc42494e36efd193964f1588c2190f7 /golang/restapi/embedded_spec.go
parentf36836a6399022338ec02849da42f6f518c7a54f (diff)
downloadfatcat-fc3d70a256dbd45fdd54a21efa6abc49b554e8e2.tar.gz
fatcat-fc3d70a256dbd45fdd54a21efa6abc49b554e8e2.zip
rename golang directory
Diffstat (limited to 'golang/restapi/embedded_spec.go')
-rw-r--r--golang/restapi/embedded_spec.go250
1 files changed, 250 insertions, 0 deletions
diff --git a/golang/restapi/embedded_spec.go b/golang/restapi/embedded_spec.go
new file mode 100644
index 00000000..1b193eb9
--- /dev/null
+++ b/golang/restapi/embedded_spec.go
@@ -0,0 +1,250 @@
+// Code generated by go-swagger; DO NOT EDIT.
+
+package restapi
+
+// This file was generated by the swagger tool.
+// Editing this file might prove futile when you re-run the swagger generate command
+
+import (
+ "encoding/json"
+)
+
+var (
+ // SwaggerJSON embedded version of the swagger document used at generation time
+ SwaggerJSON json.RawMessage
+ // FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
+ FlatSwaggerJSON json.RawMessage
+)
+
+func init() {
+ SwaggerJSON = json.RawMessage([]byte(`{
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "schemes": [
+ "http",
+ "https"
+ ],
+ "swagger": "2.0",
+ "info": {
+ "description": "A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata",
+ "title": "fatcat",
+ "version": "0.1.0"
+ },
+ "host": "api.fatcat.wiki",
+ "basePath": "/v0",
+ "paths": {
+ "/creator": {
+ "post": {
+ "parameters": [
+ {
+ "name": "body",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/creator_entity"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "created",
+ "schema": {
+ "$ref": "#/definitions/creator_entity"
+ }
+ },
+ "default": {
+ "description": "generic error response",
+ "schema": {
+ "$ref": "#/definitions/error"
+ }
+ }
+ }
+ }
+ },
+ "/creator/{id}": {
+ "get": {
+ "responses": {
+ "200": {
+ "description": "fetch a single creator by id",
+ "schema": {
+ "$ref": "#/definitions/creator_entity"
+ }
+ },
+ "default": {
+ "description": "generic error response",
+ "schema": {
+ "$ref": "#/definitions/error"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "type": "string",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ]
+ }
+ },
+ "definitions": {
+ "creator_entity": {
+ "type": "object",
+ "required": [
+ "ident",
+ "state"
+ ],
+ "properties": {
+ "ident": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orcid": {
+ "type": "string"
+ },
+ "redirect": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "state": {
+ "type": "string"
+ }
+ }
+ },
+ "error": {
+ "type": "object",
+ "required": [
+ "message"
+ ],
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+}`))
+ FlatSwaggerJSON = json.RawMessage([]byte(`{
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "schemes": [
+ "http",
+ "https"
+ ],
+ "swagger": "2.0",
+ "info": {
+ "description": "A scalable, versioned, API-oriented catalog of bibliographic entities and file metadata",
+ "title": "fatcat",
+ "version": "0.1.0"
+ },
+ "host": "api.fatcat.wiki",
+ "basePath": "/v0",
+ "paths": {
+ "/creator": {
+ "post": {
+ "parameters": [
+ {
+ "name": "body",
+ "in": "body",
+ "schema": {
+ "$ref": "#/definitions/creator_entity"
+ }
+ }
+ ],
+ "responses": {
+ "201": {
+ "description": "created",
+ "schema": {
+ "$ref": "#/definitions/creator_entity"
+ }
+ },
+ "default": {
+ "description": "generic error response",
+ "schema": {
+ "$ref": "#/definitions/error"
+ }
+ }
+ }
+ }
+ },
+ "/creator/{id}": {
+ "get": {
+ "responses": {
+ "200": {
+ "description": "fetch a single creator by id",
+ "schema": {
+ "$ref": "#/definitions/creator_entity"
+ }
+ },
+ "default": {
+ "description": "generic error response",
+ "schema": {
+ "$ref": "#/definitions/error"
+ }
+ }
+ }
+ },
+ "parameters": [
+ {
+ "type": "string",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ]
+ }
+ },
+ "definitions": {
+ "creator_entity": {
+ "type": "object",
+ "required": [
+ "ident",
+ "state"
+ ],
+ "properties": {
+ "ident": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orcid": {
+ "type": "string"
+ },
+ "redirect": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "string"
+ },
+ "state": {
+ "type": "string"
+ }
+ }
+ },
+ "error": {
+ "type": "object",
+ "required": [
+ "message"
+ ],
+ "properties": {
+ "message": {
+ "type": "string"
+ }
+ }
+ }
+ }
+}`))
+}