Skip to content

Commit

Permalink
Fix code block formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs authored Jul 28, 2024
1 parent 13a2d0e commit c5e9a06
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions optimade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4527,25 +4527,25 @@ The OPTIMADE JSON Lines format then extends these rules with the following conve

This leaves the following overall file structure:

```
<header>
<optional metadata>
<base info response>
<entry info responses>
<entries block ordered by entry type>
<optional custom extension endpoints>
```
.. code:: jsonc
<header>
<optional metadata>
<base info response>
<entry info responses>
<entries block ordered by entry type>
<optional custom extension endpoints>
- Information about prefixes and provider fields

Example OPTIMADE JSON Lines File
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

```jsonlines
{"x-optimade": {"api_version": "1.2.0"}}
{"meta": {"time_stamp": "2024-07-19T11:47:10Z", "data_returned": 6, "provider": {"name": "Example JSONL", "description": "An example JSONL file.", "prefix": "_exmpl"}}}
{"type": "info", "id": "/", "attributes": {"api_version": "1.2.0", "available_api_versions": ["1.2.0"], "formats": ["json"], "entry_types_by_format": {"json": ["references", "structures"]}, "license": "https://example.com/licenses/example_license.html"} "homepage": "https://example.com", "name": "Example API", "provider": {"description": "A simple example provider", "name": "Example Provider"}}}
{"type": "info", "id": "references", ...}
{"type": "info", "id": "structures", ...}
{"type": "structures", "id": "1", "attributes": {...}
```
.. code:jsonc
{"x-optimade": {"api_version": "1.2.0"}}
{"meta": {"time_stamp": "2024-07-19T11:47:10Z", "data_returned": 6, "provider": {"name": "Example JSONL", "description": "An example JSONL file.", "prefix": "_exmpl"}}}
{"type": "info", "id": "/", "attributes": {"api_version": "1.2.0", "available_api_versions": ["1.2.0"], "formats": ["json"], "entry_types_by_format": {"json": ["references", "structures"]}, "license": "https://example.com/licenses/example_license.html"} "homepage": "https://example.com", "name": "Example API", "provider": {"description": "A simple example provider", "name": "Example Provider"}}}
{"type": "info", "id": "references", ...}
{"type": "info", "id": "structures", ...}
{"type": "structures", "id": "1", "attributes": {...}

0 comments on commit c5e9a06

Please sign in to comment.