Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to match Content-types from platform #118

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/main/resources/world/data/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -12769,9 +12769,12 @@
"post": {
"consumes": [
"application/json-l",
"application/json"
"application/json",
"application/n-triples",
"text/turtle",
"application/rdf+xml"
],
"description": "Append JSON data to a stream associated with a dataset. \n\ndata.world streams are append-only by default. Alternatively, if a primary key is specified (see: `POST:/streams/{owner}/{id}/{streamId}/schema`), data.world will replace records with the same primary key value.\n\n**Streams don't need to be created before you can append data to them**. They will be created on-demand, when the first record is appended or by defining its schema.\n\nMultiple records can be appended at once by using JSON-L (`application/json-l`) as the request content type.\n\n**IMPORTANT**\n\nData uploaded to a dataset via a stream is not immediatelly processed. Instead, it is processed automatically in accordance with the dataset settings (default: daily) or as a result of calling `POST:/datasets/{owner}/{id}/sync`.\n\nOnce processed, the contents of a stream will appear as part of the respective dataset as a `.jsonl` file (e.g. `my-stream` will produce a file named `my-stream.jsonl`).",
"description": "Append JSON or RDF data to a stream associated with a dataset. \n\ndata.world streams are append-only by default. Alternatively, if a primary key is specified (see: `POST:/streams/{owner}/{id}/{streamId}/schema`), data.world will replace records with the same primary key value.\n\n**Streams don't need to be created before you can append data to them**. They will be created on-demand, when the first record is appended or by defining its schema.\n\nMultiple records can be appended at once by using JSON-L (`application/json-l`) as the request content type.\n\n**IMPORTANT**\n\nData uploaded to a dataset via a stream is not immediatelly processed. Instead, it is processed automatically in accordance with the dataset settings (default: daily) or as a result of calling `POST:/datasets/{owner}/{id}/sync`.\n\nOnce processed, the contents of a stream will appear as part of the respective dataset as a `.jsonl` file (e.g. `my-stream` will produce a file named `my-stream.jsonl`).\n\nRDF datatypes will be aggregated into a single RDF graph - each payload can contain an arbitrary subgraph, and the resulting graph will be the union of those graphs.",
"operationId": "appendRecords",
"parameters": [
{
Expand Down Expand Up @@ -14783,4 +14786,4 @@
"name": "DOIs"
}
]
}
}