From 683ae8f27e35e7331a16766dba72165de3d254bf Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Wed, 12 Jan 2022 21:23:18 -0800 Subject: [PATCH] fixing build --- doc/api.oa3 | 4 ++-- net/server/internal/api_authorize.go | 2 +- net/server/internal/model_revision.go | 2 +- net/server/internal/model_status.go | 27 --------------------------- net/server/internal/routers.go | 2 +- 5 files changed, 5 insertions(+), 32 deletions(-) delete mode 100644 net/server/internal/model_status.go diff --git a/doc/api.oa3 b/doc/api.oa3 index 713c4ec6..6f8ef714 100644 --- a/doc/api.oa3 +++ b/doc/api.oa3 @@ -612,7 +612,7 @@ paths: tags: - authorize description: Retrieve an authenticate data messaging verifying the account holder is accepting the action referenced by the token. - operationId: authenticate + operationId: authorize security: - bearerAuth: [] responses: @@ -3821,7 +3821,7 @@ components: appToken: type: string - Status: + Revision: type: object required: - profile diff --git a/net/server/internal/api_authorize.go b/net/server/internal/api_authorize.go index 3ef8bdf6..7f623c75 100644 --- a/net/server/internal/api_authorize.go +++ b/net/server/internal/api_authorize.go @@ -13,7 +13,7 @@ import ( "net/http" ) -func Authenticate(w http.ResponseWriter, r *http.Request) { +func Authorize(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "application/json; charset=UTF-8") w.WriteHeader(http.StatusOK) } diff --git a/net/server/internal/model_revision.go b/net/server/internal/model_revision.go index 9760e01c..f86ea321 100644 --- a/net/server/internal/model_revision.go +++ b/net/server/internal/model_revision.go @@ -5,7 +5,7 @@ * * API version: 0.0.1 * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git) + * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package databag diff --git a/net/server/internal/model_status.go b/net/server/internal/model_status.go deleted file mode 100644 index e8b63115..00000000 --- a/net/server/internal/model_status.go +++ /dev/null @@ -1,27 +0,0 @@ -/* - * DataBag - * - * DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations. - * - * API version: 0.0.1 - * Contact: roland.osborne@gmail.com - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ -package databag - -type Status struct { - - Profile int64 `json:"profile"` - - Content int64 `json:"content"` - - Label int64 `json:"label"` - - Share int64 `json:"share"` - - Card int64 `json:"card"` - - Dialogue int64 `json:"dialogue"` - - Insight int64 `json:"insight"` -} diff --git a/net/server/internal/routers.go b/net/server/internal/routers.go index 3fe98a80..0134d10b 100644 --- a/net/server/internal/routers.go +++ b/net/server/internal/routers.go @@ -250,7 +250,7 @@ var routes = Routes{ "Authenticate", strings.ToUpper("Put"), "/authorize", - Authenticate, + Authorize, }, Route{