Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit 7e92570

Browse files
committed
make export take multiple keytrials
1 parent 00279fd commit 7e92570

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

api/src/core/routes/migration.tsp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ namespace Migration {
315315

316316
/**
317317
* Export all of your data for safekeeping or for importing it to another server.
318+
* Only exports data for which a key trial has been passed.
318319
* @returns
319320
* - `200` and the appropriate data if the key trial has been passed and is not yet expired.
320321
* See the `P2Export` schema for more information.
@@ -329,11 +330,12 @@ namespace Migration {
329330
@added(Version.`v1.0-beta.1`)
330331
@summary("Export all data")
331332
op exportData(
332-
@doc("A completed `KeyTrial`.")
333+
@doc("A list of completed `KeyTrial`s")
333334
@header({
334335
name: "X-P2-core-keytrial",
336+
format: "simple",
335337
})
336-
keyTrial: polyproto.core.models.KeyTrialCompleted,
338+
keyTrial: polyproto.core.models.KeyTrialCompleted[],
337339
): {
338340
@statusCode statusCode: 200;
339341
@body body: polyproto.core.models.P2Export;

0 commit comments

Comments
 (0)