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