()
| 129 | } |
| 130 | |
| 131 | func getTowerSchema() map[string]interface{} { |
| 132 | return map[string]interface{}{ |
| 133 | "description": "Tower", |
| 134 | "id": "tower", |
| 135 | "title": "tower", |
| 136 | "singular": "tower", |
| 137 | "parent": "castle", |
| 138 | "plural": "towers", |
| 139 | "prefix": "/v2.0", |
| 140 | "url": "/v2.0/towers", |
| 141 | "schema": map[string]interface{}{ |
| 142 | "properties": map[string]interface{}{ |
| 143 | "id": map[string]interface{}{ |
| 144 | "format": "uuid", |
| 145 | "permission": []interface{}{ |
| 146 | "create", |
| 147 | }, |
| 148 | "type": "string", |
| 149 | }, |
| 150 | "isMain": map[string]interface{}{ |
| 151 | "permission": []interface{}{ |
| 152 | "create", |
| 153 | "update", |
| 154 | }, |
| 155 | "type": "boolean", |
| 156 | }, |
| 157 | "sister_id": map[string]interface{}{ |
| 158 | "permission": []interface{}{ |
| 159 | "create", |
| 160 | "update", |
| 161 | }, |
| 162 | "type": "string", |
| 163 | "relation": "tower", |
| 164 | }, |
| 165 | }, |
| 166 | "propertiesOrder": []interface{}{ |
| 167 | "id", |
| 168 | "isMain", |
| 169 | "sister", |
| 170 | }, |
| 171 | }, |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | func getChamberSchema() map[string]interface{} { |
| 176 | return map[string]interface{}{ |
no outgoing calls
no test coverage detected