()
| 70 | } |
| 71 | |
| 72 | func getCastleSchema() map[string]interface{} { |
| 73 | return map[string]interface{}{ |
| 74 | "description": "Castle", |
| 75 | "id": "castle", |
| 76 | "singular": "castle", |
| 77 | "title": "castle", |
| 78 | "parent": "", |
| 79 | "plural": "castles", |
| 80 | "prefix": "/v2.0", |
| 81 | "url": "/v2.0/castles", |
| 82 | "schema": map[string]interface{}{ |
| 83 | "properties": map[string]interface{}{ |
| 84 | "id": map[string]interface{}{ |
| 85 | "format": "uuid", |
| 86 | "permission": []interface{}{ |
| 87 | "create", |
| 88 | }, |
| 89 | "type": "string", |
| 90 | }, |
| 91 | "name": map[string]interface{}{ |
| 92 | "permission": []interface{}{ |
| 93 | "create", |
| 94 | "update", |
| 95 | }, |
| 96 | "type": "string", |
| 97 | }, |
| 98 | }, |
| 99 | "propertiesOrder": []interface{}{ |
| 100 | "id", |
| 101 | "name", |
| 102 | }, |
| 103 | }, |
| 104 | "actions": map[string]interface{}{ |
| 105 | "open_gates": map[string]interface{}{ |
| 106 | "method": "GET", |
| 107 | "path": "/:id/open_gates", |
| 108 | "input": map[string]interface{}{ |
| 109 | "type": "object", |
| 110 | "properties": map[string]interface{}{ |
| 111 | "gate_id": map[string]interface{}{ |
| 112 | "type": "number", |
| 113 | }, |
| 114 | }, |
| 115 | }, |
| 116 | "output": map[string]interface{}{ |
| 117 | "type": "string", |
| 118 | }, |
| 119 | }, |
| 120 | "close_gates": map[string]interface{}{ |
| 121 | "method": "GET", |
| 122 | "path": "/close_all_gates", |
| 123 | "output": map[string]interface{}{ |
| 124 | "type": "string", |
| 125 | }, |
| 126 | }, |
| 127 | }, |
| 128 | } |
| 129 | } |
no outgoing calls
no test coverage detected