Skip to content

Commit 5c0ae39

Browse files
marked twigraph service as deprecated in both kotlin script and openapi description
1 parent 6ab5a8e commit 5c0ae39

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

twingraph/src/main/kotlin/com/cosmotech/twingraph/api/TwingraphServiceImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const val DEFAULT_GRAPH_ROTATION = "3"
5959

6060
@Service
6161
@Suppress("TooManyFunctions")
62+
@Deprecated("Use dataset service instead")
6263
class TwingraphServiceImpl(
6364
private val organizationService: OrganizationApiService,
6465
private val csmJedisPool: JedisPool,

twingraph/src/main/openapi/twingraph.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ paths:
3232
schema:
3333
type: string
3434
post:
35+
deprecated: true
3536
operationId: createGraph
3637
tags:
3738
- twingraph
@@ -79,6 +80,7 @@ paths:
7980
'204':
8081
description: Successful response
8182
delete:
83+
deprecated: true
8284
operationId: delete
8385
tags:
8486
- twingraph
@@ -96,6 +98,7 @@ paths:
9698
schema:
9799
type: string
98100
get:
101+
deprecated: true
99102
operationId: findAllTwingraphs
100103
tags:
101104
- twingraph
@@ -125,6 +128,7 @@ paths:
125128
schema:
126129
type: string
127130
get:
131+
deprecated: true
128132
operationId: jobStatus
129133
tags:
130134
- twingraph
@@ -155,6 +159,7 @@ paths:
155159
schema:
156160
type: string
157161
post:
162+
deprecated: true
158163
operationId: query
159164
tags:
160165
- twingraph
@@ -198,6 +203,7 @@ paths:
198203
schema:
199204
type: string
200205
post:
206+
deprecated: true
201207
operationId: batchQuery
202208
tags:
203209
- twingraph
@@ -235,6 +241,7 @@ paths:
235241
schema:
236242
type: string
237243
get:
244+
deprecated: true
238245
operationId: downloadGraph
239246
tags:
240247
- twingraph
@@ -272,6 +279,7 @@ paths:
272279
- node
273280
- relationship
274281
post:
282+
deprecated: true
275283
operationId: createEntities
276284
tags:
277285
- twingraph
@@ -297,6 +305,7 @@ paths:
297305
schema:
298306
type: string
299307
get:
308+
deprecated: true
300309
operationId: getEntities
301310
tags:
302311
- twingraph
@@ -319,6 +328,7 @@ paths:
319328
schema:
320329
type: string
321330
patch:
331+
deprecated: true
322332
operationId: updateEntities
323333
tags:
324334
- twingraph
@@ -344,6 +354,7 @@ paths:
344354
schema:
345355
type: string
346356
delete:
357+
deprecated: true
347358
operationId: deleteEntities
348359
tags:
349360
- twingraph
@@ -376,6 +387,7 @@ paths:
376387
schema:
377388
type: string
378389
get:
390+
deprecated: true
379391
operationId: getGraphMetaData
380392
tags:
381393
- twingraph
@@ -391,6 +403,7 @@ paths:
391403
example:
392404
$ref: "#/components/examples/MetaDataResponse"
393405
patch:
406+
deprecated: true
394407
operationId: updateGraphMetaData
395408
tags:
396409
- twingraph
@@ -479,6 +492,7 @@ paths:
479492
value:
480493
query: "MATCH (p:Person {id: toInteger($id)}) DELETE p"
481494
post:
495+
deprecated: true
482496
operationId: batchUploadUpdate
483497
tags:
484498
- twingraph

0 commit comments

Comments
 (0)