|
215 | 215 | } |
216 | 216 | } |
217 | 217 | }, |
218 | | - "description": "Creates a new Big Table", |
219 | 218 | "parameters": [ |
| 219 | + { |
| 220 | + "name": "name", |
| 221 | + "in": "query", |
| 222 | + "schema": { |
| 223 | + "type": "string", |
| 224 | + "description": "Name of the table. Required when the name is not passed in the request body. It is an error to pass a name in both this query parameter and the request body.", |
| 225 | + "example": "Invoices" |
| 226 | + }, |
| 227 | + "required": false |
| 228 | + }, |
220 | 229 | { |
221 | 230 | "name": "onSchemaError", |
222 | 231 | "in": "query", |
|
386 | 395 | ], |
387 | 396 | "additionalProperties": false |
388 | 397 | } |
| 398 | + }, |
| 399 | + "text/csv": { |
| 400 | + "schema": { |
| 401 | + "type": "string", |
| 402 | + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", |
| 403 | + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" |
| 404 | + } |
| 405 | + }, |
| 406 | + "text/tab-separated-values": { |
| 407 | + "schema": { |
| 408 | + "type": "string", |
| 409 | + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data. The schema will be inferred from the data. The name of the table must be passed in the query parameter `name`.", |
| 410 | + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" |
| 411 | + } |
389 | 412 | } |
390 | 413 | } |
391 | | - } |
| 414 | + }, |
| 415 | + "description": "Creates a new Big Table" |
392 | 416 | } |
393 | 417 | }, |
394 | 418 | "/tables/{tableID}": { |
|
537 | 561 | } |
538 | 562 | } |
539 | 563 | }, |
540 | | - "description": "Overwrites a Big Table with new schema and/or data", |
541 | 564 | "parameters": [ |
542 | 565 | { |
543 | 566 | "name": "tableID", |
|
712 | 735 | ], |
713 | 736 | "additionalProperties": false |
714 | 737 | } |
| 738 | + }, |
| 739 | + "text/csv": { |
| 740 | + "schema": { |
| 741 | + "type": "string", |
| 742 | + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", |
| 743 | + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" |
| 744 | + } |
| 745 | + }, |
| 746 | + "text/tab-separated-values": { |
| 747 | + "schema": { |
| 748 | + "type": "string", |
| 749 | + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", |
| 750 | + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" |
| 751 | + } |
715 | 752 | } |
716 | 753 | } |
717 | | - } |
| 754 | + }, |
| 755 | + "description": "Replaces the schema and/or data of a Big Table" |
718 | 756 | } |
719 | 757 | }, |
720 | 758 | "/tables/{tableID}/rows": { |
|
862 | 900 | } |
863 | 901 | } |
864 | 902 | }, |
865 | | - "description": "Adds rows to a Big Table", |
866 | 903 | "parameters": [ |
867 | 904 | { |
868 | 905 | "name": "tableID", |
|
935 | 972 | } |
936 | 973 | ] |
937 | 974 | } |
| 975 | + }, |
| 976 | + "text/csv": { |
| 977 | + "schema": { |
| 978 | + "type": "string", |
| 979 | + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", |
| 980 | + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" |
| 981 | + } |
| 982 | + }, |
| 983 | + "text/tab-separated-values": { |
| 984 | + "schema": { |
| 985 | + "type": "string", |
| 986 | + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", |
| 987 | + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" |
| 988 | + } |
938 | 989 | } |
939 | 990 | } |
940 | | - } |
| 991 | + }, |
| 992 | + "description": "Adds rows to a Big Table" |
941 | 993 | } |
942 | 994 | }, |
943 | 995 | "/stashes/{stashID}/{serial}": { |
|
989 | 1041 | } |
990 | 1042 | } |
991 | 1043 | }, |
992 | | - "description": "Sets the content of a chunk of data inside a stash", |
993 | 1044 | "parameters": [ |
994 | 1045 | { |
995 | 1046 | "name": "stashID", |
|
1039 | 1090 | } |
1040 | 1091 | ] |
1041 | 1092 | } |
| 1093 | + }, |
| 1094 | + "text/csv": { |
| 1095 | + "schema": { |
| 1096 | + "type": "string", |
| 1097 | + "description": "A CSV string. The first line is column IDs, and each subsequent line is a row of data.", |
| 1098 | + "example": "Name,Age,Birthday\nAlice,25,2024-08-29T09:46:16.722Z\nBob,30,2020-01-15T09:00:16.722Z" |
| 1099 | + } |
| 1100 | + }, |
| 1101 | + "text/tab-separated-values": { |
| 1102 | + "schema": { |
| 1103 | + "type": "string", |
| 1104 | + "description": "A TSV string. The first line is column IDs, and each subsequent line is a row of data.", |
| 1105 | + "example": "Name\tAge\tBirthday\nAlice\t25\t2024-08-29T09:46:16.722Z\nBob\t30\t2020-01-15T09:00:16.722Z" |
| 1106 | + } |
1042 | 1107 | } |
1043 | 1108 | } |
1044 | | - } |
| 1109 | + }, |
| 1110 | + "description": "Sets the content of a chunk of data inside a stash" |
1045 | 1111 | } |
1046 | 1112 | }, |
1047 | 1113 | "/stashes/{stashID}": { |
|
1093 | 1159 | } |
1094 | 1160 | } |
1095 | 1161 | }, |
1096 | | - "description": "Deletes a stash and all its data", |
1097 | 1162 | "parameters": [ |
1098 | 1163 | { |
1099 | 1164 | "name": "stashID", |
|
1106 | 1171 | }, |
1107 | 1172 | "required": true |
1108 | 1173 | } |
1109 | | - ] |
| 1174 | + ], |
| 1175 | + "description": "Deletes a stash and all its data" |
1110 | 1176 | } |
1111 | 1177 | } |
1112 | 1178 | }, |
|
0 commit comments