|
| 1 | +# this is the read-only /tables/{tableName} endpoint from VOSI-1.1 |
| 2 | +get: |
| 3 | + operationId: read-table-metadata |
| 4 | + tags: |
| 5 | + - VOSI Table Metadata |
| 6 | + summary: get metadata for the specified table |
| 7 | + description: provides the table metadata for a single schema or table |
| 8 | + parameters: |
| 9 | + - in: path |
| 10 | + name: name |
| 11 | + description: a single schema name or table name as provided in tap_schema |
| 12 | + required: true |
| 13 | + schema: |
| 14 | + type: string |
| 15 | + responses: |
| 16 | + '200': |
| 17 | + $ref: '#/components/schemas/tableDoc' |
| 18 | + '401': |
| 19 | + $ref: ./vosi-std-responses.yaml#/not-authenticated |
| 20 | + '403': |
| 21 | + $ref: ./vosi-std-responses.yaml#/permission-denied |
| 22 | + '404': |
| 23 | + $ref: ./vosi-std-responses.yaml#/not-found |
| 24 | + |
| 25 | +components: |
| 26 | + schemas: |
| 27 | + tableDoc: |
| 28 | + description: metadata for the specified schema or table |
| 29 | + content: |
| 30 | + text/xml: |
| 31 | + schema: |
| 32 | + type: object |
| 33 | + xml: |
| 34 | + name: table |
| 35 | + prefix: vosi |
| 36 | + namespace: http://www.ivoa.net/xml/VOSITables/v1.0 |
| 37 | + example: | |
| 38 | + <vosi:table xmlns:vosi="http://www.ivoa.net/xml/VOSITables/v1.0" |
| 39 | + xmlns:vs="http://www.ivoa.net/xml/VODataService/v1.1" |
| 40 | + xmlns:vte="http://www.opencadc.org/xml/VOSITables-ext/v0.1" |
| 41 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="output"> |
| 42 | + <name>tap_schema.schemas</name> |
| 43 | + <description>description of schemas in this tableset</description> |
| 44 | + <column> |
| 45 | + <name>schema_name</name> |
| 46 | + <description>schema name for reference to tap_schema.schemas</description> |
| 47 | + <dataType xsi:type="vs:VOTableType" arraysize="64*">char</dataType> |
| 48 | + <flag>indexed</flag> |
| 49 | + </column> |
| 50 | + <column> |
| 51 | + <name>utype</name> |
| 52 | + <description>lists the utypes of schemas in the tableset</description> |
| 53 | + <dataType xsi:type="vs:VOTableType" arraysize="512*">char</dataType> |
| 54 | + </column> |
| 55 | + <column> |
| 56 | + <name>description</name> |
| 57 | + <description>describes schemas in the tableset</description> |
| 58 | + <dataType xsi:type="vs:VOTableType" arraysize="512*">char</dataType> |
| 59 | + </column> |
| 60 | + <column> |
| 61 | + <name>schema_index</name> |
| 62 | + <description>recommended sort order when listing schemas</description> |
| 63 | + <dataType xsi:type="vs:VOTableType">int</dataType> |
| 64 | + </column> |
| 65 | + </vosi:table> |
| 66 | +
|
| 67 | + application/x-votable+xml: |
| 68 | + schema: |
| 69 | + type: object |
| 70 | + xml: |
| 71 | + name: VOTABLE |
| 72 | + namespace: http://www.ivoa.net/xml/VOTable/v1.3 |
| 73 | + example: | |
| 74 | + <VOTABLE xmlns="http://www.ivoa.net/xml/VOTable/v1.3" |
| 75 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.4"> |
| 76 | + <RESOURCE type="results"> |
| 77 | + <TABLE> |
| 78 | + <FIELD name="schema_name" datatype="char" arraysize="64*"> |
| 79 | + <DESCRIPTION>schema name for reference to tap_schema.schemas</DESCRIPTION> |
| 80 | + </FIELD> |
| 81 | + <FIELD name="utype" datatype="char" arraysize="512*"> |
| 82 | + <DESCRIPTION>lists the utypes of schemas in the tableset</DESCRIPTION> |
| 83 | + </FIELD> |
| 84 | + <FIELD name="description" datatype="char" arraysize="512*"> |
| 85 | + <DESCRIPTION>describes schemas in the tableset</DESCRIPTION> |
| 86 | + </FIELD> |
| 87 | + <FIELD name="schema_index" datatype="int"> |
| 88 | + <DESCRIPTION>recommended sort order when listing schemas</DESCRIPTION> |
| 89 | + </FIELD> |
| 90 | + <!--data goes here--> |
| 91 | + </TABLE> |
| 92 | + </RESOURCE> |
| 93 | + </VOTABLE> |
| 94 | +
|
0 commit comments