Skip to content

Commit f7802ff

Browse files
authored
Restore the spec to the way it is supposed to be (#301)
The 3.3.0 test merge clobbered it back to 1.2.1 unintentionally
1 parent ab0004f commit f7802ff

1 file changed

Lines changed: 26 additions & 2 deletions

File tree

spec/api/api.yaml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ info:
4646
```
4747
4848
Changes
49+
2.0.2 (07/24/2025)
50+
* Add peer ID property to return value of [/startMultipeerReplicator](#operation/startMultipeerReplicator)
51+
4952
2.0.1 (07/10/2025)
5053
* Add Merge-Dict Conflict Resolver
5154
@@ -54,6 +57,9 @@ info:
5457
* deprecate dataset_version
5558
* In ResetConfiguration, change the value for the "dataset" key to a url.
5659
60+
1.2.2 (09/19/2025)
61+
* Add headers property to ReplicatorConfiguration
62+
5763
1.2.1 (06/04/2025)
5864
* Add authenticator property to [/startMultipeerReplicator](#operation/startMultipeerReplicator)
5965
@@ -142,7 +148,7 @@ info:
142148
* Changed DocumentReplication.flags type from int to array of enums.
143149
* Added 'enableDocumentListener' to ReplicatorConfiguration.
144150
* Added a note that any enum values are case insensitive.
145-
version: 1.2.1
151+
version: 2.0.2
146152
tags:
147153
- name: API
148154
description: The API endpoints of the test server
@@ -882,7 +888,7 @@ paths:
882888
content:
883889
application/json:
884890
schema:
885-
$ref: '#/components/schemas/Replicator'
891+
$ref: '#/components/schemas/MultipeerReplicator'
886892
'400':
887893
$ref: '#/components/responses/Error'
888894
'404':
@@ -1177,6 +1183,12 @@ components:
11771183
description: The default is true.
11781184
type: boolean
11791185
example: false
1186+
headers:
1187+
description: HTTP headers to add to the request to the remote server.
1188+
type: object
1189+
additionalProperties:
1190+
type: string
1191+
example: {'header1': 'value1', 'header2': 'value2'}
11801192
pinnedServerCert:
11811193
description: The PEM representation of the TLS certificate that the remote is using
11821194
type: string
@@ -1273,6 +1285,18 @@ components:
12731285
$ref: '#/components/schemas/DocumentReplication'
12741286
error:
12751287
$ref: '#/components/schemas/Error'
1288+
MultipeerReplicator:
1289+
type: object
1290+
required: ['id', "peerID"]
1291+
properties:
1292+
id:
1293+
type: string
1294+
format: uuid
1295+
example: '123e4567-e89b-12d3-a456-426614174000'
1296+
peerID:
1297+
type: string
1298+
format: base64
1299+
example: 'scGCZGP6yPiMsbEn+kXk725S2RoSUeN662CJL+cQDpw='
12761300
MultipeerReplicatorStatus:
12771301
type: object
12781302
required: ['replicators']

0 commit comments

Comments
 (0)