|
| 1 | +/graph/relations: |
| 2 | + get: |
| 3 | + tags: |
| 4 | + - Graph exploration |
| 5 | + summary: List same-field relations configurations |
| 6 | + operationId: listGraphRelations |
| 7 | + security: |
| 8 | + - bearerAuth: [] |
| 9 | + responses: |
| 10 | + "200": |
| 11 | + description: List of same-field relation configurations |
| 12 | + content: |
| 13 | + application/json: |
| 14 | + schema: |
| 15 | + type: array |
| 16 | + items: |
| 17 | + $ref: "#/components/schemas/GraphRelation" |
| 18 | + "401": |
| 19 | + $ref: "components.yml#/responses/401" |
| 20 | + "403": |
| 21 | + $ref: "components.yml#/responses/403" |
| 22 | + |
| 23 | + post: |
| 24 | + tags: |
| 25 | + - Graph exploration |
| 26 | + summary: Create a same-field relation configuration |
| 27 | + operationId: createGraphRelation |
| 28 | + security: |
| 29 | + - bearerAuth: [] |
| 30 | + requestBody: |
| 31 | + description: Graph relation |
| 32 | + content: |
| 33 | + application/json: |
| 34 | + schema: |
| 35 | + $ref: '#/components/schemas/CreateGraphRelation' |
| 36 | + required: true |
| 37 | + responses: |
| 38 | + "201": |
| 39 | + description: Configuration created |
| 40 | + content: |
| 41 | + application/json: |
| 42 | + schema: |
| 43 | + $ref: "#/components/schemas/GraphRelation" |
| 44 | + "401": |
| 45 | + $ref: "components.yml#/responses/401" |
| 46 | + "403": |
| 47 | + $ref: "components.yml#/responses/403" |
| 48 | + |
| 49 | +/graph/relations/{relationId}: |
| 50 | + delete: |
| 51 | + tags: |
| 52 | + - Graph exploration |
| 53 | + summary: Delete a same-field relation configuration |
| 54 | + operationId: deleteGraphRelation |
| 55 | + security: |
| 56 | + - bearerAuth: [] |
| 57 | + parameters: |
| 58 | + - name: relationId |
| 59 | + description: ID of the configuration |
| 60 | + in: path |
| 61 | + required: true |
| 62 | + schema: |
| 63 | + type: string |
| 64 | + format: uuid |
| 65 | + responses: |
| 66 | + "204": |
| 67 | + description: Configuration was deleted |
| 68 | + "401": |
| 69 | + $ref: "components.yml#/responses/401" |
| 70 | + "403": |
| 71 | + $ref: "components.yml#/responses/403" |
| 72 | + |
| 73 | +/graph/{recordType}/{recordId}: |
| 74 | + get: |
| 75 | + tags: |
| 76 | + - Graph exploration |
| 77 | + summary: Generate the relationship graph from a starting record |
| 78 | + operationId: generateRelationshipGraph |
| 79 | + security: |
| 80 | + - bearerAuth: [] |
| 81 | + parameters: |
| 82 | + - name: recordType |
| 83 | + description: Record table name |
| 84 | + in: path |
| 85 | + required: true |
| 86 | + schema: |
| 87 | + type: string |
| 88 | + - name: recordId |
| 89 | + description: Record ID |
| 90 | + in: path |
| 91 | + required: true |
| 92 | + schema: |
| 93 | + type: string |
| 94 | + responses: |
| 95 | + "200": |
| 96 | + description: Relationship graph |
| 97 | + content: |
| 98 | + application/json: |
| 99 | + schema: |
| 100 | + $ref: "#/components/schemas/Graph" |
| 101 | + "401": |
| 102 | + $ref: "components.yml#/responses/401" |
| 103 | + "403": |
| 104 | + $ref: "components.yml#/responses/403" |
| 105 | + |
| 106 | +components: |
| 107 | + schemas: |
| 108 | + GraphRelation: |
| 109 | + type: object |
| 110 | + required: |
| 111 | + - id |
| 112 | + - label |
| 113 | + - left_type |
| 114 | + - left_field |
| 115 | + - right_type |
| 116 | + - right_field |
| 117 | + - created_at |
| 118 | + properties: |
| 119 | + id: |
| 120 | + type: string |
| 121 | + format: uuid |
| 122 | + label: |
| 123 | + type: string |
| 124 | + left_type: |
| 125 | + type: string |
| 126 | + left_field: |
| 127 | + type: string |
| 128 | + right_type: |
| 129 | + type: string |
| 130 | + right_field: |
| 131 | + type: string |
| 132 | + created_at: |
| 133 | + type: string |
| 134 | + format: date-time |
| 135 | + |
| 136 | + CreateGraphRelation: |
| 137 | + type: object |
| 138 | + required: |
| 139 | + - label |
| 140 | + - left_type |
| 141 | + - left_field |
| 142 | + - right_type |
| 143 | + - right_field |
| 144 | + properties: |
| 145 | + label: |
| 146 | + type: string |
| 147 | + left_type: |
| 148 | + type: string |
| 149 | + left_field: |
| 150 | + type: string |
| 151 | + right_type: |
| 152 | + type: string |
| 153 | + right_field: |
| 154 | + type: string |
| 155 | + |
| 156 | + Graph: |
| 157 | + type: object |
| 158 | + required: |
| 159 | + - start |
| 160 | + - nodes |
| 161 | + - edges |
| 162 | + properties: |
| 163 | + start: |
| 164 | + $ref: "#/components/schemas/GraphNodeRef" |
| 165 | + nodes: |
| 166 | + type: array |
| 167 | + items: |
| 168 | + $ref: "#/components/schemas/GraphNode" |
| 169 | + edges: |
| 170 | + type: array |
| 171 | + items: |
| 172 | + $ref: "#/components/schemas/GraphEdge" |
| 173 | + |
| 174 | + GraphNodeRef: |
| 175 | + type: object |
| 176 | + required: [type, id] |
| 177 | + properties: |
| 178 | + type: |
| 179 | + type: string |
| 180 | + id: |
| 181 | + type: string |
| 182 | + |
| 183 | + GraphNode: |
| 184 | + allOf: |
| 185 | + - $ref: "#/components/schemas/GraphNodeRef" |
| 186 | + - type: object |
| 187 | + properties: |
| 188 | + type: |
| 189 | + type: string |
| 190 | + id: |
| 191 | + type: string |
| 192 | + connector: |
| 193 | + type: boolean |
| 194 | + connector_kind: |
| 195 | + type: string |
| 196 | + enum: [match, link] |
| 197 | + hypernode_count: |
| 198 | + type: integer |
| 199 | + |
| 200 | + GraphEdge: |
| 201 | + type: object |
| 202 | + required: |
| 203 | + - kind |
| 204 | + - label |
| 205 | + - from |
| 206 | + - to |
| 207 | + properties: |
| 208 | + kind: |
| 209 | + type: string |
| 210 | + label: |
| 211 | + type: string |
| 212 | + from: |
| 213 | + $ref: "#/components/schemas/GraphNodeRef" |
| 214 | + to: |
| 215 | + $ref: "#/components/schemas/GraphNodeRef" |
| 216 | + field: |
| 217 | + type: string |
| 218 | + value: |
| 219 | + type: string |
0 commit comments