Skip to content
Snippets Groups Projects
Commit 131d6c09 authored by Marvin Berstecher's avatar Marvin Berstecher
Browse files

change of: swag init -d controller -g connection.go

parent 7baf492f
No related branches found
No related tags found
4 merge requests!5Sprint 6,!4Sprint 5,!3Sprint 3,!2Sprint 1 & 2: DIDComm Mediation Request
...@@ -48,7 +48,7 @@ const docTemplate = `{ ...@@ -48,7 +48,7 @@ const docTemplate = `{
} }
}, },
"/connections/block/{did}": { "/connections/block/{did}": {
"put": { "post": {
"description": "Blocks existing connection (more to be added)", "description": "Blocks existing connection (more to be added)",
"consumes": [ "consumes": [
"application/json" "application/json"
...@@ -142,7 +142,7 @@ const docTemplate = `{ ...@@ -142,7 +142,7 @@ const docTemplate = `{
} }
} }
}, },
"put": { "post": {
"description": "Creates connection endpoint (more to be added)", "description": "Creates connection endpoint (more to be added)",
"consumes": [ "consumes": [
"application/json" "application/json"
...@@ -278,8 +278,8 @@ const docTemplate = `{ ...@@ -278,8 +278,8 @@ const docTemplate = `{
// SwaggerInfo holds exported Swagger Info so clients can modify it // SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{ var SwaggerInfo = &swag.Spec{
Version: "1.0", Version: "1.0",
Host: "localhost:8080", Host: "localhost:9090",
BasePath: "/tobedefined", BasePath: "/",
Schemes: []string{}, Schemes: []string{},
Title: "DIDComm Connector API", Title: "DIDComm Connector API",
Description: "This is a sample server celler server.", Description: "This is a sample server celler server.",
......
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
}, },
"version": "1.0" "version": "1.0"
}, },
"host": "localhost:8080", "host": "localhost:9090",
"basePath": "/tobedefined", "basePath": "/",
"paths": { "paths": {
"/connections": { "/connections": {
"get": { "get": {
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
} }
}, },
"/connections/block/{did}": { "/connections/block/{did}": {
"put": { "post": {
"description": "Blocks existing connection (more to be added)", "description": "Blocks existing connection (more to be added)",
"consumes": [ "consumes": [
"application/json" "application/json"
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
} }
} }
}, },
"put": { "post": {
"description": "Creates connection endpoint (more to be added)", "description": "Creates connection endpoint (more to be added)",
"consumes": [ "consumes": [
"application/json" "application/json"
......
basePath: /tobedefined basePath: /
host: localhost:8080 host: localhost:9090
info: info:
contact: contact:
email: support@swagger.io email: support@swagger.io
...@@ -89,7 +89,7 @@ paths: ...@@ -89,7 +89,7 @@ paths:
summary: Update existing connection summary: Update existing connection
tags: tags:
- Connections - Connections
put: post:
consumes: consumes:
- application/json - application/json
description: Creates connection endpoint (more to be added) description: Creates connection endpoint (more to be added)
...@@ -104,7 +104,7 @@ paths: ...@@ -104,7 +104,7 @@ paths:
tags: tags:
- Connections - Connections
/connections/block/{did}: /connections/block/{did}:
put: post:
consumes: consumes:
- application/json - application/json
description: Blocks existing connection (more to be added) description: Blocks existing connection (more to be added)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment