File tree Expand file tree Collapse file tree 3 files changed +46
-46
lines changed Expand file tree Collapse file tree 3 files changed +46
-46
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const docTemplate = `{
2525 "host": "{{.Host}}",
2626 "basePath": "{{.BasePath}}",
2727 "paths": {
28- "/CreateUserAccount ": {
28+ "/signin ": {
2929 "post": {
3030 "consumes": [
3131 "application/json"
@@ -36,7 +36,7 @@ const docTemplate = `{
3636 "tags": [
3737 "Validation"
3838 ],
39- "summary": "Creates an account on the service ",
39+ "summary": "Sign Into Account ",
4040 "parameters": [
4141 {
4242 "maxLength": 320,
@@ -53,24 +53,19 @@ const docTemplate = `{
5353 "name": "password",
5454 "in": "formData",
5555 "required": true
56- },
57- {
58- "maxLength": 156,
59- "minLength": 8,
60- "type": "string",
61- "name": "passwordconfirm",
62- "in": "formData",
63- "required": true
6456 }
6557 ],
6658 "responses": {
6759 "200": {
68- "description": "OK"
60+ "description": "OK",
61+ "schema": {
62+ "$ref": "#/definitions/model.UserAccountSigninResponse"
63+ }
6964 }
7065 }
7166 }
7267 },
73- "/signin ": {
68+ "/signup ": {
7469 "post": {
7570 "consumes": [
7671 "application/json"
@@ -81,7 +76,7 @@ const docTemplate = `{
8176 "tags": [
8277 "Validation"
8378 ],
84- "summary": "Sign Into Account ",
79+ "summary": "Creates an account on the service ",
8580 "parameters": [
8681 {
8782 "maxLength": 320,
@@ -98,14 +93,19 @@ const docTemplate = `{
9893 "name": "password",
9994 "in": "formData",
10095 "required": true
96+ },
97+ {
98+ "maxLength": 156,
99+ "minLength": 8,
100+ "type": "string",
101+ "name": "passwordconfirm",
102+ "in": "formData",
103+ "required": true
101104 }
102105 ],
103106 "responses": {
104107 "200": {
105- "description": "OK",
106- "schema": {
107- "$ref": "#/definitions/model.UserAccountSigninResponse"
108- }
108+ "description": "OK"
109109 }
110110 }
111111 }
Original file line number Diff line number Diff line change 1818 "host" : " api.engin.app" ,
1919 "basePath" : " /v1" ,
2020 "paths" : {
21- "/CreateUserAccount " : {
21+ "/signin " : {
2222 "post" : {
2323 "consumes" : [
2424 " application/json"
2929 "tags" : [
3030 " Validation"
3131 ],
32- "summary" : " Creates an account on the service " ,
32+ "summary" : " Sign Into Account " ,
3333 "parameters" : [
3434 {
3535 "maxLength" : 320 ,
4646 "name" : " password" ,
4747 "in" : " formData" ,
4848 "required" : true
49- },
50- {
51- "maxLength" : 156 ,
52- "minLength" : 8 ,
53- "type" : " string" ,
54- "name" : " passwordconfirm" ,
55- "in" : " formData" ,
56- "required" : true
5749 }
5850 ],
5951 "responses" : {
6052 "200" : {
61- "description" : " OK"
53+ "description" : " OK" ,
54+ "schema" : {
55+ "$ref" : " #/definitions/model.UserAccountSigninResponse"
56+ }
6257 }
6358 }
6459 }
6560 },
66- "/signin " : {
61+ "/signup " : {
6762 "post" : {
6863 "consumes" : [
6964 " application/json"
7469 "tags" : [
7570 " Validation"
7671 ],
77- "summary" : " Sign Into Account " ,
72+ "summary" : " Creates an account on the service " ,
7873 "parameters" : [
7974 {
8075 "maxLength" : 320 ,
9186 "name" : " password" ,
9287 "in" : " formData" ,
9388 "required" : true
89+ },
90+ {
91+ "maxLength" : 156 ,
92+ "minLength" : 8 ,
93+ "type" : " string" ,
94+ "name" : " passwordconfirm" ,
95+ "in" : " formData" ,
96+ "required" : true
9497 }
9598 ],
9699 "responses" : {
97100 "200" : {
98- "description" : " OK" ,
99- "schema" : {
100- "$ref" : " #/definitions/model.UserAccountSigninResponse"
101- }
101+ "description" : " OK"
102102 }
103103 }
104104 }
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ info:
142142 title : Swagger Example API
143143 version : " 1.0"
144144paths :
145- /CreateUserAccount :
145+ /signin :
146146 post :
147147 consumes :
148148 - application/json
@@ -159,21 +159,17 @@ paths:
159159 name : password
160160 required : true
161161 type : string
162- - in : formData
163- maxLength : 156
164- minLength : 8
165- name : passwordconfirm
166- required : true
167- type : string
168162 produces :
169163 - application/json
170164 responses :
171165 " 200 " :
172166 description : OK
173- summary : Creates an account on the service
167+ schema :
168+ $ref : ' #/definitions/model.UserAccountSigninResponse'
169+ summary : Sign Into Account
174170 tags :
175171 - Validation
176- /signin :
172+ /signup :
177173 post :
178174 consumes :
179175 - application/json
@@ -190,14 +186,18 @@ paths:
190186 name : password
191187 required : true
192188 type : string
189+ - in : formData
190+ maxLength : 156
191+ minLength : 8
192+ name : passwordconfirm
193+ required : true
194+ type : string
193195 produces :
194196 - application/json
195197 responses :
196198 " 200 " :
197199 description : OK
198- schema :
199- $ref : ' #/definitions/model.UserAccountSigninResponse'
200- summary : Sign Into Account
200+ summary : Creates an account on the service
201201 tags :
202202 - Validation
203203 /v1/account/{id} :
You can’t perform that action at this time.
0 commit comments