()
| 237 | } |
| 238 | |
| 239 | func getActionsSchema() map[string]interface{} { |
| 240 | return map[string]interface{}{ |
| 241 | "description": "Action", |
| 242 | "id": "action", |
| 243 | "title": "action", |
| 244 | "singular": "action", |
| 245 | "plural": "action", |
| 246 | "prefix": "/v2.0", |
| 247 | "url": "/v2.0/actions", |
| 248 | "schema": map[string]interface{}{ |
| 249 | "properties": map[string]interface{}{ |
| 250 | "a": map[string]interface{}{ |
| 251 | "permission": []interface{}{ |
| 252 | "create", |
| 253 | "update", |
| 254 | }, |
| 255 | "type": "number", |
| 256 | }, |
| 257 | "b": map[string]interface{}{ |
| 258 | "permission": []interface{}{ |
| 259 | "create", |
| 260 | "update", |
| 261 | }, |
| 262 | "type": "boolean", |
| 263 | }, |
| 264 | "c": map[string]interface{}{ |
| 265 | "permission": []interface{}{ |
| 266 | "create", |
| 267 | "update", |
| 268 | }, |
| 269 | "type": "string", |
| 270 | }, |
| 271 | "d": map[string]interface{}{ |
| 272 | "permission": []interface{}{ |
| 273 | "create", |
| 274 | "update", |
| 275 | }, |
| 276 | "type": "object", |
| 277 | }, |
| 278 | }, |
| 279 | "propertiesOrder": []interface{}{ |
| 280 | "a", |
| 281 | "b", |
| 282 | "c", |
| 283 | "d", |
| 284 | }, |
| 285 | }, |
| 286 | "actions": map[string]interface{}{ |
| 287 | "do_a": map[string]interface{}{ |
| 288 | "method": "GET", |
| 289 | "path": "/do_a", |
| 290 | "output": map[string]interface{}{ |
| 291 | "type": "string", |
| 292 | }, |
| 293 | }, |
| 294 | "do_b": map[string]interface{}{ |
| 295 | "method": "GET", |
| 296 | "path": "/:id/do_b", |
no outgoing calls
no test coverage detected