|
4 | 4 | "title": "Organization", |
5 | 5 | "version": "1.0.0" |
6 | 6 | }, |
7 | | - "paths": {}, |
| 7 | + "paths": { |
| 8 | + "/api/identity/orgs/by-domain": { |
| 9 | + "get": { |
| 10 | + "summary": "Get organization by domain", |
| 11 | + "operationId": "getOrgByDomain", |
| 12 | + "parameters": [ |
| 13 | + { |
| 14 | + "name": "domain", |
| 15 | + "in": "query", |
| 16 | + "required": true, |
| 17 | + "schema": { |
| 18 | + "type": "string" |
| 19 | + } |
| 20 | + } |
| 21 | + ], |
| 22 | + "responses": { |
| 23 | + "200": { |
| 24 | + "description": "Successful response", |
| 25 | + "content": { |
| 26 | + "application/json": { |
| 27 | + "schema": { |
| 28 | + "type": "object", |
| 29 | + "required": [ |
| 30 | + "id", |
| 31 | + "name", |
| 32 | + "country", |
| 33 | + "region", |
| 34 | + "description", |
| 35 | + "owner", |
| 36 | + "metadata", |
| 37 | + "created_at", |
| 38 | + "updated_at" |
| 39 | + ], |
| 40 | + "properties": { |
| 41 | + "id": { |
| 42 | + "x-oapi-codegen-extra-tags": { |
| 43 | + "db": "id" |
| 44 | + }, |
| 45 | + "type": "string", |
| 46 | + "format": "uuid", |
| 47 | + "description": "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.", |
| 48 | + "x-go-type": "uuid.UUID", |
| 49 | + "x-go-type-import": { |
| 50 | + "path": "github.com/gofrs/uuid" |
| 51 | + } |
| 52 | + }, |
| 53 | + "name": { |
| 54 | + "type": "string", |
| 55 | + "x-oapi-codegen-extra-tags": { |
| 56 | + "db": "name" |
| 57 | + } |
| 58 | + }, |
| 59 | + "country": { |
| 60 | + "type": "string", |
| 61 | + "x-oapi-codegen-extra-tags": { |
| 62 | + "db": "country" |
| 63 | + } |
| 64 | + }, |
| 65 | + "region": { |
| 66 | + "type": "string", |
| 67 | + "x-oapi-codegen-extra-tags": { |
| 68 | + "db": "region" |
| 69 | + } |
| 70 | + }, |
| 71 | + "description": { |
| 72 | + "type": "string", |
| 73 | + "x-oapi-codegen-extra-tags": { |
| 74 | + "db": "description" |
| 75 | + } |
| 76 | + }, |
| 77 | + "owner": { |
| 78 | + "x-oapi-codegen-extra-tags": { |
| 79 | + "db": "owner" |
| 80 | + }, |
| 81 | + "type": "string", |
| 82 | + "format": "uuid", |
| 83 | + "description": "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.", |
| 84 | + "x-go-type": "uuid.UUID", |
| 85 | + "x-go-type-import": { |
| 86 | + "path": "github.com/gofrs/uuid" |
| 87 | + } |
| 88 | + }, |
| 89 | + "metadata": { |
| 90 | + "x-go-type": "OrgMetadata", |
| 91 | + "x-oapi-codegen-extra-tags": { |
| 92 | + "db": "metadata" |
| 93 | + }, |
| 94 | + "type": "object", |
| 95 | + "required": [ |
| 96 | + "preferences" |
| 97 | + ], |
| 98 | + "properties": { |
| 99 | + "preferences": { |
| 100 | + "x-go-type": "Preferences", |
| 101 | + "type": "object", |
| 102 | + "required": [ |
| 103 | + "theme", |
| 104 | + "dashboard" |
| 105 | + ], |
| 106 | + "properties": { |
| 107 | + "theme": { |
| 108 | + "x-go-type": "Theme", |
| 109 | + "type": "object", |
| 110 | + "required": [ |
| 111 | + "id", |
| 112 | + "logo" |
| 113 | + ], |
| 114 | + "properties": { |
| 115 | + "id": { |
| 116 | + "type": "string" |
| 117 | + }, |
| 118 | + "logo": { |
| 119 | + "x-go-type": "Logo", |
| 120 | + "type": "object", |
| 121 | + "required": [ |
| 122 | + "desktop_view", |
| 123 | + "mobile_view", |
| 124 | + "dark_desktop_view", |
| 125 | + "dark_mobile_view" |
| 126 | + ], |
| 127 | + "properties": { |
| 128 | + "desktop_view": { |
| 129 | + "x-go-type": "Location", |
| 130 | + "type": "object", |
| 131 | + "required": [ |
| 132 | + "svg", |
| 133 | + "location" |
| 134 | + ], |
| 135 | + "properties": { |
| 136 | + "svg": { |
| 137 | + "type": "string" |
| 138 | + }, |
| 139 | + "location": { |
| 140 | + "type": "string" |
| 141 | + } |
| 142 | + } |
| 143 | + }, |
| 144 | + "mobile_view": { |
| 145 | + "x-go-type": "Location", |
| 146 | + "type": "object", |
| 147 | + "required": [ |
| 148 | + "svg", |
| 149 | + "location" |
| 150 | + ], |
| 151 | + "properties": { |
| 152 | + "svg": { |
| 153 | + "type": "string" |
| 154 | + }, |
| 155 | + "location": { |
| 156 | + "type": "string" |
| 157 | + } |
| 158 | + } |
| 159 | + }, |
| 160 | + "dark_desktop_view": { |
| 161 | + "x-go-type": "Location", |
| 162 | + "type": "object", |
| 163 | + "required": [ |
| 164 | + "svg", |
| 165 | + "location" |
| 166 | + ], |
| 167 | + "properties": { |
| 168 | + "svg": { |
| 169 | + "type": "string" |
| 170 | + }, |
| 171 | + "location": { |
| 172 | + "type": "string" |
| 173 | + } |
| 174 | + } |
| 175 | + }, |
| 176 | + "dark_mobile_view": { |
| 177 | + "x-go-type": "Location", |
| 178 | + "type": "object", |
| 179 | + "required": [ |
| 180 | + "svg", |
| 181 | + "location" |
| 182 | + ], |
| 183 | + "properties": { |
| 184 | + "svg": { |
| 185 | + "type": "string" |
| 186 | + }, |
| 187 | + "location": { |
| 188 | + "type": "string" |
| 189 | + } |
| 190 | + } |
| 191 | + } |
| 192 | + } |
| 193 | + }, |
| 194 | + "vars": { |
| 195 | + "type": "object", |
| 196 | + "additionalProperties": true |
| 197 | + } |
| 198 | + } |
| 199 | + }, |
| 200 | + "dashboard": { |
| 201 | + "x-go-type": "DashboardPrefs", |
| 202 | + "type": "object", |
| 203 | + "description": "Preferences specific to dashboard behavior", |
| 204 | + "additionalProperties": true |
| 205 | + } |
| 206 | + } |
| 207 | + } |
| 208 | + } |
| 209 | + }, |
| 210 | + "created_at": { |
| 211 | + "x-oapi-codegen-extra-tags": { |
| 212 | + "db": "created_at" |
| 213 | + }, |
| 214 | + "type": "string", |
| 215 | + "format": "date-time", |
| 216 | + "x-go-type-skip-optional-pointer": true |
| 217 | + }, |
| 218 | + "updated_at": { |
| 219 | + "x-oapi-codegen-extra-tags": { |
| 220 | + "db": "updated_at" |
| 221 | + }, |
| 222 | + "type": "string", |
| 223 | + "format": "date-time", |
| 224 | + "x-go-type-skip-optional-pointer": true |
| 225 | + }, |
| 226 | + "deleted_at": { |
| 227 | + "x-oapi-codegen-extra-tags": { |
| 228 | + "db": "deleted_at" |
| 229 | + }, |
| 230 | + "type": "string", |
| 231 | + "format": "date-time", |
| 232 | + "x-go-type": "sql.NullTime", |
| 233 | + "x-go-type-import": { |
| 234 | + "path": "database/sql" |
| 235 | + }, |
| 236 | + "x-go-type-skip-optional-pointer": true |
| 237 | + }, |
| 238 | + "domain": { |
| 239 | + "type": "string", |
| 240 | + "nullable": true, |
| 241 | + "x-oapi-codegen-extra-tags": { |
| 242 | + "db": "domain" |
| 243 | + } |
| 244 | + } |
| 245 | + } |
| 246 | + } |
| 247 | + } |
| 248 | + } |
| 249 | + }, |
| 250 | + "404": { |
| 251 | + "description": "Organization not found" |
| 252 | + }, |
| 253 | + "500": { |
| 254 | + "description": "Internal server error" |
| 255 | + } |
| 256 | + } |
| 257 | + } |
| 258 | + } |
| 259 | + }, |
8 | 260 | "components": { |
9 | 261 | "schemas": { |
10 | 262 | "UUID": { |
|
0 commit comments