Skip to content

Commit 07b021f

Browse files
authored
Merge pull request #58 from pdowler/openapi
OpenAPI components for common DALI parameters
2 parents 501f56b + 591f7fa commit 07b021f

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

DALI.tex

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,9 @@ \section{Parameters}
10941094
\label{sec:parameters}
10951095
A DAL job is defined by a set of parameter-value pairs. Some of these parameters
10961096
have a standard meaning and are defined here, but most are defined by the
1097-
service specification or another related standard.
1097+
service specification or another related standard. Where indicated below, the
1098+
specification for individual parameters is provided as an OpenAPI component that
1099+
can be included in a concrete service specification.
10981100

10991101
\subsection{Case Sensitivity}
11001102
Parameter names are not case sensitive; a DAL service must treat
@@ -1158,6 +1160,8 @@ \subsubsection{VERSION}
11581160

11591161
\subsubsection{RESPONSEFORMAT}
11601162
\label{sec:RESPONSEFORMAT}
1163+
OpenAPI component: dali-responseformat.yaml
1164+
11611165
The RESPONSEFORMAT parameter is used so the client can specify the format of the
11621166
response (e.g. the output of the job). For DALI-sync requests, this is the
11631167
content-type of the response. For DALI-async requests, this is the content-type
@@ -1228,6 +1232,8 @@ \subsubsection{RESPONSEFORMAT}
12281232

12291233
\subsubsection{MAXREC}
12301234
\label{sec:MAXREC}
1235+
OpenAPI component: dali-maxrec.yaml
1236+
12311237
For services performing discovery (querying for an arbitrary number of
12321238
records), the query endpoints must accept MAXREC parameters specifying the maximum
12331239
number of records to be returned. If MAXREC is not specified in a request, the
@@ -1249,6 +1255,8 @@ \subsubsection{MAXREC}
12491255

12501256
\subsubsection{UPLOAD}
12511257
\label{sec:UPLOAD}
1258+
OpenAPI component: dali-upload.yaml
1259+
12521260
The UPLOAD parameter is used to reference read-only external resources
12531261
(typically files) via their URI, to be uploaded for use as input data to
12541262
the query. The value of the UPLOAD parameter is a name-URI pair. For
@@ -1632,6 +1640,7 @@ \subsection{PR-DALI-1.2}
16321640
\item changed VOSI-capability so it is only required for registered services
16331641
\item clarified use of VOTable serialisation for numbers and boolean
16341642
\item clarified use of VOTable datatype and arraysize when used with xtype
1643+
\item add OpenAPI components for maxrec, responseformat, and upload params
16351644
\item changing terminology: What so far was mostly ``web resource'' is now
16361645
``endpoint''.
16371646
\end{itemize}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ DOCNAME = DALI
99
DOCVERSION = 1.2
1010

1111
# Publication date, ISO format; update manually for "releases"
12-
DOCDATE = 2023-07-12
12+
DOCDATE = 2025-09-19
1313

1414
# What is it you're writing: NOTE, WD, PR, or REC
1515
DOCTYPE = WD
@@ -25,7 +25,7 @@ FIGURES = role_diagram.svg
2525
VECTORFIGURES =
2626

2727
# Additional files to distribute (e.g., CSS, schema files, examples...)
28-
AUX_FILES =
28+
AUX_FILES = openapi
2929

3030
-include ivoatex/Makefile
3131

openapi/dali-maxrec.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: MAXREC
2+
in: query
3+
description: |
4+
request a specific limit on number of records to return
5+
schema:
6+
type: integer
7+
format: int64
8+
minimum: 0
9+
exclusiveMinimum: false

openapi/dali-responseformat.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: RESPONSEFORMAT
2+
in: query
3+
description: select output table format
4+
schema:
5+
type: string

openapi/dali-upload.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: UPLOAD
2+
in: query
3+
description: |
4+
specify a comma-separated name,location pair for a temporary
5+
resource to be uploaded and used in the request
6+
schema:
7+
type: string
8+
pattern: '^[a-zA-Z]\w*,\S+$'

0 commit comments

Comments
 (0)