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