|
|
@ -25,27 +25,27 @@ produces:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
"/query/{serverName}/{keyId}":
|
|
|
|
"/query/{serverName}/{keyId}":
|
|
|
|
get:
|
|
|
|
get:
|
|
|
|
summary: Retreive a server key
|
|
|
|
summary: Retrieve a server key.
|
|
|
|
description: Retreive a server key
|
|
|
|
description: Retrieve a server key.
|
|
|
|
operationId: getQueryKeys
|
|
|
|
operationId: perspectivesKeyQuery
|
|
|
|
parameters:
|
|
|
|
parameters:
|
|
|
|
- in: path
|
|
|
|
- in: path
|
|
|
|
name: serverName
|
|
|
|
name: serverName
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: Server name
|
|
|
|
description: Server name.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: matrix.org
|
|
|
|
x-example: matrix.org
|
|
|
|
- in: path
|
|
|
|
- in: path
|
|
|
|
name: keyId
|
|
|
|
name: keyId
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: Key ID
|
|
|
|
description: Key ID.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: TODO # No examples in spec so far
|
|
|
|
x-example: TODO # No examples in spec so far
|
|
|
|
- in: query
|
|
|
|
- in: query
|
|
|
|
name: minimum_valid_until_ts
|
|
|
|
name: minimum_valid_until_ts
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
format: int64
|
|
|
|
description: Minimum Valid Until Milliseconds
|
|
|
|
description: Minimum Valid Until Milliseconds.
|
|
|
|
required: true # TODO: Verify
|
|
|
|
required: true # TODO: Verify
|
|
|
|
x-example: 1234567890
|
|
|
|
x-example: 1234567890
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
@ -55,9 +55,9 @@ paths:
|
|
|
|
$ref: "definitions/keys_query_response.yaml"
|
|
|
|
$ref: "definitions/keys_query_response.yaml"
|
|
|
|
"/query":
|
|
|
|
"/query":
|
|
|
|
post:
|
|
|
|
post:
|
|
|
|
summary: Retreive a server key
|
|
|
|
summary: Retrieve a server key
|
|
|
|
description: Retreive a server key
|
|
|
|
description: Retrieve a server key.
|
|
|
|
operationId: postQueryKeys
|
|
|
|
operationId: bulkPerspectivesKeyQuery
|
|
|
|
parameters:
|
|
|
|
parameters:
|
|
|
|
- in: body
|
|
|
|
- in: body
|
|
|
|
name: body
|
|
|
|
name: body
|
|
|
@ -76,24 +76,24 @@ paths:
|
|
|
|
properties:
|
|
|
|
properties:
|
|
|
|
server_keys:
|
|
|
|
server_keys:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
description: The query criteria
|
|
|
|
description: The query criteria.
|
|
|
|
additionalProperties:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
name: ServerName
|
|
|
|
name: ServerName
|
|
|
|
description: The server names to query
|
|
|
|
description: The server names to query.
|
|
|
|
additionalProperties:
|
|
|
|
additionalProperties:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
title: Query Criteria
|
|
|
|
title: Query Criteria
|
|
|
|
description: The server keys to query
|
|
|
|
description: The server keys to query.
|
|
|
|
properties:
|
|
|
|
properties:
|
|
|
|
minimum_valid_until_ts:
|
|
|
|
minimum_valid_until_ts:
|
|
|
|
type: integer
|
|
|
|
type: integer
|
|
|
|
format: int64
|
|
|
|
format: int64
|
|
|
|
description: Minimum Valid Until MS
|
|
|
|
description: Minimum Valid Until MS.
|
|
|
|
example: 1234567890
|
|
|
|
example: 1234567890
|
|
|
|
required: ['server_keys']
|
|
|
|
required: ['server_keys']
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: The keys for the server
|
|
|
|
description: The keys for the server.
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
$ref: "definitions/keys_query_response.yaml"
|
|
|
|
$ref: "definitions/keys_query_response.yaml"
|
|
|
|