Skip to content

Commit b209dd2

Browse files
committed
Minor update
1 parent b4f208e commit b209dd2

File tree

5 files changed

+93
-7
lines changed

5 files changed

+93
-7
lines changed

api/openapi.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,28 @@ paths:
3131
schema:
3232
$ref: '#/components/schemas/_customer_get_200_response'
3333
description: Successful retrieval
34+
headers:
35+
Access-Control-Allow-Origin:
36+
description: Allowed origins for CORS
37+
explode: false
38+
schema:
39+
example: '*'
40+
type: string
41+
style: simple
42+
Access-Control-Allow-Methods:
43+
description: Allowed HTTP methods
44+
explode: false
45+
schema:
46+
example: "GET, POST, PUT, DELETE"
47+
type: string
48+
style: simple
49+
Access-Control-Allow-Headers:
50+
description: Allowed headers for CORS
51+
explode: false
52+
schema:
53+
example: "Content-Type, Authorization"
54+
type: string
55+
style: simple
3456
summary: Get customer details using the MasterId
3557
tags:
3658
- Customer
@@ -55,12 +77,42 @@ paths:
5577
schema:
5678
$ref: '#/components/schemas/_customer_post_200_response'
5779
description: Successful registration
80+
headers:
81+
Access-Control-Allow-Origin:
82+
description: Allowed origins for CORS
83+
explode: false
84+
schema:
85+
example: '*'
86+
type: string
87+
style: simple
88+
Access-Control-Allow-Methods:
89+
description: Allowed HTTP methods
90+
explode: false
91+
schema:
92+
example: "GET, POST, PUT, DELETE"
93+
type: string
94+
style: simple
95+
Access-Control-Allow-Headers:
96+
description: Allowed headers for CORS
97+
explode: false
98+
schema:
99+
example: "Content-Type, Authorization"
100+
type: string
101+
style: simple
58102
"409":
59103
content:
60104
application/json:
61105
schema:
62106
$ref: '#/components/schemas/_customer_post_409_response'
63107
description: Conflict - User already exists
108+
headers:
109+
Access-Control-Allow-Origin:
110+
description: Allowed origins for CORS
111+
explode: false
112+
schema:
113+
example: '*'
114+
type: string
115+
style: simple
64116
summary: Create a new customer in the database
65117
tags:
66118
- Customer

git_push.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ if [ "$git_remote" = "" ]; then # git remote not defined
5050

5151
fi
5252

53-
git pull origin master
53+
git pull origin main
5454

5555
# Pushes (Forces) the changes in the local repository up to the remote repository
5656
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57-
git push origin master 2>&1 | grep -v 'To https'
57+
git push origin main 2>&1 | grep -v 'To https'

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ module github.com/Password-Management/API-Client
22

33
go 1.18
44

5-
require (
6-
github.com/stretchr/testify v1.10.0
7-
)
5+
require github.com/stretchr/testify v1.10.0
86

97
require (
108
github.com/davecgh/go-spew v1.1.1 // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
github.com/Password-Management/API-Client v0.0.1 h1:Zrej/JVY2rXcsZleReabKcgEVXNC28jlrVxoN6Gc7Ms=
2-
github.com/Password-Management/API-Client v0.0.1/go.mod h1:0eECNeG+ptTP9kRYfiyQUQppF41puToLNCd+rF+pEMc=
31
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
42
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
53
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

server.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,22 @@ paths:
5555
responses:
5656
"200":
5757
description: Successful registration
58+
headers:
59+
Access-Control-Allow-Origin:
60+
description: Allowed origins for CORS
61+
schema:
62+
type: string
63+
example: "*"
64+
Access-Control-Allow-Methods:
65+
description: Allowed HTTP methods
66+
schema:
67+
type: string
68+
example: "GET, POST, PUT, DELETE"
69+
Access-Control-Allow-Headers:
70+
description: Allowed headers for CORS
71+
schema:
72+
type: string
73+
example: "Content-Type, Authorization"
5874
content:
5975
application/json:
6076
schema:
@@ -65,6 +81,12 @@ paths:
6581
example: Customer added successfully with email vivek@gmail.com
6682
"409":
6783
description: Conflict - User already exists
84+
headers:
85+
Access-Control-Allow-Origin:
86+
description: Allowed origins for CORS
87+
schema:
88+
type: string
89+
example: "*"
6890
content:
6991
application/json:
7092
schema:
@@ -88,6 +110,22 @@ paths:
88110
responses:
89111
"200":
90112
description: Successful retrieval
113+
headers:
114+
Access-Control-Allow-Origin:
115+
description: Allowed origins for CORS
116+
schema:
117+
type: string
118+
example: "*"
119+
Access-Control-Allow-Methods:
120+
description: Allowed HTTP methods
121+
schema:
122+
type: string
123+
example: "GET, POST, PUT, DELETE"
124+
Access-Control-Allow-Headers:
125+
description: Allowed headers for CORS
126+
schema:
127+
type: string
128+
example: "Content-Type, Authorization"
91129
content:
92130
application/json:
93131
schema:

0 commit comments

Comments
 (0)