· 2 years ago · Jul 18, 2023, 03:55 PM
1 }
2 }
3 },
4 "post": {
5 "tags": [
6 "po_approval_redirects"
7 ],
8 "summary": "Insert new PO-Approval-Redirects",
9 "requestBody": {
10 "description": "Create new PO-Approval-Redirects entry",
11 "required": true,
12 "content": {
13 "application/json": {
14 "schema": {
15 "type": "object",
16 "properties": {
17 "rule_maker_ldap": {
18 "type": "string"
19 },
20 "buyer_ldap": {
21 "type": "string"
22 },
23 "direct_to_manager_ldap": {
24 "type": "string"
25 }
26 },
27 "required": [
28 "rule_maker_ldap",
29 "buyer_ldap"
30 ]
31 }
32 }
33 }
34 },
35 "responses": {
36 "201": {
37 "description": "Updated"
38 }
39 }
40 },
41 "components": {
42 "responses": null,
43 "UnauthorizedError": {
44 "description": "API key is missing or invalid",
45 "headers": {
46 "WWW_Authenticate": {
47 "schema": {
48 "type": "string"
49 }
50 }
51 }
52 }
53 },
54 "patch": {
55 "tags": [
56 "po_approval_redirects"
57 ],
58 "summary": "Update",
59 "requestBody": {
60 "description": "Update PO Approval Redirects",
61 "required": true,
62 "content": {
63 "application/json": {
64 "schema": {
65 "type": "object",
66 "properties": {
67 "rule_maker_ldap": {
68 "type": "string"
69 },
70 "buyer_ldap": {
71 "type": "string"
72 },
73 "direct_to_manager_ldap": {
74 "type": "string"
75 }
76 },
77 "required": [
78 "rule_maker_ldap",
79 "buyer_ldap"
80 ]
81 }
82 }
83 }
84 },
85 "responses": {
86 "201": {
87 "description": "Updated"
88 }
89 }
90 },
91 "put": {
92 "tags": [
93 "po_approval_redirects"
94 ],
95 "summary": "Upsert new PO-Approval-Redirects",
96 "requestBody": {
97 "description": "Upsert new Po Approval redirects. If the Primary Keys already exist, do an update, else add a new record",
98 "required": true,
99 "content": {
100 "application/json": {
101 "schema": {
102 "type": "object",
103 "properties": {
104 "rule_maker_ldap": {
105 "type": "string"
106 },
107 "buyer_ldap": {
108 "type": "string"
109 },
110 "direct_to_manager_ldap": {
111 "type": "string"
112 }
113 },
114 "required": [
115 "rule_maker_ldap",
116 "buyer_ldap"
117 ]
118 }
119 }
120 }
121 },
122 "responses": {
123 "201": {
124 "description": "Updated"
125 }
126 }
127 },
128 "delete": {
129 "tags": [
130 "po_approval_redirects"
131 ],
132 "summary": "Delete PO-Approval-Redirects",
133 "parameters": [
134 {
135 "in": "query",
136 "name": "rule_maker_ldap",
137 "default": "wpan1",
138 "required": true,
139 "schema": {
140 "type": "string"
141 },
142 "description": "Filter on rule_maker_ldap Id"
143 },
144 {
145 "in": "query",
146 "name": "buyer_ldap",
147 "default": "wpan1",
148 "required": true,
149 "schema": {
150 "type": "string"
151 },
152 "description": "Filter on buyer_ldap Id"
153 },
154 {
155 "in": "query",
156 "name": "direct_to_manager_ldap",
157 "default": "wpan1",
158 "required": true,
159 "schema": {
160 "type": "string"
161 },
162 "description": "Delete on direct_to_manager_ldap Id"
163 }
164 ],
165 "responses": {
166 "201": {
167 "description": "Updated"
168 }
169 }
170 }
171 },
172 "/po-approval-rules-history": {
173 "get": {
174 "tags": [
175 "po_approval_rules_history"
176 ],
177 "description": "Find PO Approval Rule History Record for application",
178 "summary": "Find",
179 "parameters": [
180 {
181 "in": "query",
182 "name": "ldap_id",
183 "default": null,
184 "schema": {
185 "type": "string"
186 },
187 "description": "Filter on LDAP ID"
188 },
189 {
190 "in": "query",
191 "name": "exception_type",
192 "default": null,
193 "schema": {
194 "type": "string"
195 },
196 "description": "Filter on Exception Type"
197 },
198 {
199 "in": "query",
200 "name": "role_value",
201 "default": null,
202 "schema": {
203 "type": "string"
204 },
205 "description": "Filter on Rule Names such as DMM, GMM, EVP, PH Manager and Pack