aboutsummaryrefslogtreecommitdiffstats
path: root/golang/gen/restapi
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-10 19:57:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-10 19:57:16 -0700
commit63dc69bbcdbee264383b919f9a8a3b1a83358be7 (patch)
tree1b74955ed3b9938f2e7d2b690ab59c9f33c91c99 /golang/gen/restapi
parent71c6b0a4418511a6c0046742512066fc27e51b21 (diff)
downloadfatcat-63dc69bbcdbee264383b919f9a8a3b1a83358be7.tar.gz
fatcat-63dc69bbcdbee264383b919f9a8a3b1a83358be7.zip
a bunch more skeleton
Diffstat (limited to 'golang/gen/restapi')
-rw-r--r--golang/gen/restapi/configure_fatcat.go20
-rw-r--r--golang/gen/restapi/embedded_spec.go106
2 files changed, 125 insertions, 1 deletions
diff --git a/golang/gen/restapi/configure_fatcat.go b/golang/gen/restapi/configure_fatcat.go
index 94e7f3e2..e101a019 100644
--- a/golang/gen/restapi/configure_fatcat.go
+++ b/golang/gen/restapi/configure_fatcat.go
@@ -14,7 +14,7 @@ import (
"git.archive.org/bnewbold/fatcat/golang/gen/restapi/operations"
)
-//go:generate swagger generate server --target ../gen --name fatcat --spec ../fatcat-openapi2.yml --exclude-main
+//go:generate swagger generate server --target ../gen --name fatcat --spec ../fatcat-openapi2.json --exclude-main
func configureFlags(api *operations.FatcatAPI) {
// api.CommandLineOptionsGroups = []swag.CommandLineOptionsGroup{ ... }
@@ -37,9 +37,27 @@ func configureAPI(api *operations.FatcatAPI) http.Handler {
api.GetCreatorIDHandler = operations.GetCreatorIDHandlerFunc(func(params operations.GetCreatorIDParams) middleware.Responder {
return middleware.NotImplemented("operation .GetCreatorID has not yet been implemented")
})
+ api.GetCreatorLookupHandler = operations.GetCreatorLookupHandlerFunc(func(params operations.GetCreatorLookupParams) middleware.Responder {
+ return middleware.NotImplemented("operation .GetCreatorLookup has not yet been implemented")
+ })
+ api.GetEditgroupIDHandler = operations.GetEditgroupIDHandlerFunc(func(params operations.GetEditgroupIDParams) middleware.Responder {
+ return middleware.NotImplemented("operation .GetEditgroupID has not yet been implemented")
+ })
+ api.GetEditorUsernameHandler = operations.GetEditorUsernameHandlerFunc(func(params operations.GetEditorUsernameParams) middleware.Responder {
+ return middleware.NotImplemented("operation .GetEditorUsername has not yet been implemented")
+ })
+ api.GetEditorUsernameChangelogHandler = operations.GetEditorUsernameChangelogHandlerFunc(func(params operations.GetEditorUsernameChangelogParams) middleware.Responder {
+ return middleware.NotImplemented("operation .GetEditorUsernameChangelog has not yet been implemented")
+ })
api.PostCreatorHandler = operations.PostCreatorHandlerFunc(func(params operations.PostCreatorParams) middleware.Responder {
return middleware.NotImplemented("operation .PostCreator has not yet been implemented")
})
+ api.PostEditgroupHandler = operations.PostEditgroupHandlerFunc(func(params operations.PostEditgroupParams) middleware.Responder {
+ return middleware.NotImplemented("operation .PostEditgroup has not yet been implemented")
+ })
+ api.PostEditgroupIDAcceptHandler = operations.PostEditgroupIDAcceptHandlerFunc(func(params operations.PostEditgroupIDAcceptParams) middleware.Responder {
+ return middleware.NotImplemented("operation .PostEditgroupIDAccept has not yet been implemented")
+ })
api.ServerShutdown = func() {}
diff --git a/golang/gen/restapi/embedded_spec.go b/golang/gen/restapi/embedded_spec.go
index 32753475..8e2a9ac4 100644
--- a/golang/gen/restapi/embedded_spec.go
+++ b/golang/gen/restapi/embedded_spec.go
@@ -382,6 +382,39 @@ func init() {
}
}
},
+ "release_entity": {
+ "type": "object",
+ "required": [
+ "ident",
+ "state"
+ ],
+ "properties": {
+ "ident": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orcid": {
+ "type": "string"
+ },
+ "redirect": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "wip",
+ "active",
+ "redirect",
+ "deleted"
+ ]
+ }
+ }
+ },
"success": {
"type": "object",
"required": [
@@ -393,6 +426,26 @@ func init() {
}
}
}
+ },
+ "x-entity-props": {
+ "ident": {
+ "type": "string"
+ },
+ "redirect": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "wip",
+ "active",
+ "redirect",
+ "deleted"
+ ],
+ "type": "string"
+ }
}
}`))
FlatSwaggerJSON = json.RawMessage([]byte(`{
@@ -760,6 +813,39 @@ func init() {
}
}
},
+ "release_entity": {
+ "type": "object",
+ "required": [
+ "ident",
+ "state"
+ ],
+ "properties": {
+ "ident": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "orcid": {
+ "type": "string"
+ },
+ "redirect": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "integer"
+ },
+ "state": {
+ "type": "string",
+ "enum": [
+ "wip",
+ "active",
+ "redirect",
+ "deleted"
+ ]
+ }
+ }
+ },
"success": {
"type": "object",
"required": [
@@ -771,6 +857,26 @@ func init() {
}
}
}
+ },
+ "x-entity-props": {
+ "ident": {
+ "type": "string"
+ },
+ "redirect": {
+ "type": "string"
+ },
+ "revision": {
+ "type": "integer"
+ },
+ "state": {
+ "enum": [
+ "wip",
+ "active",
+ "redirect",
+ "deleted"
+ ],
+ "type": "string"
+ }
}
}`))
}