diff --git a/docs/guide/src/docs/asciidoc/index.adoc b/docs/guide/src/docs/asciidoc/index.adoc index c04feaca..334c956c 100644 --- a/docs/guide/src/docs/asciidoc/index.adoc +++ b/docs/guide/src/docs/asciidoc/index.adoc @@ -51,76 +51,6 @@ dependencies { ---- -== REST API -New experimental REST API is available at `https://api.sheet.rest/v1`: - -[source,indent=0,role="primary"] -.cURL ----- -curl --request POST \ - --header "Content-Type: application/json" \ - --header "Accept: application/json" \ - --header "X-Api-Key: jYXipZWOlU18gqyogkRSG4GgKdymodDY4Hj5BkfO" \ - --data '{"sheets": [{"name": "Hello Excel","rows": [{"cells": [{"value": "Hello"}]}]}]}' \ - https://api.sheet.rest/v1/build/excel ----- - -[source,indent=0,role="secondary"] -.IntelliJ HTTP Client JSON ----- -POST https://api.sheet.rest/v1/build/excel -Content-Type: application/json -Accept: application/json -X-Api-Key: jYXipZWOlU18gqyogkRSG4GgKdymodDY4Hj5BkfO - -{ - "sheets": [ - { - "name": "Hello Excel", - "rows": [ - { - "cells": [ - { - "value": "Hello" - } - ] - } - ] - } - ] -} ----- - -[source,indent=0,role="secondary"] -.IntelliJ HTTP Client YAML ----- -POST https://api.sheet.rest/v1/build/excel -Content-Type: text/vnd.yaml -Accept: application/json -X-Api-Key: jYXipZWOlU18gqyogkRSG4GgKdymodDY4Hj5BkfO - -sheets: -- name: Hello Excel - rows: - - cells: - - value: Hello - ----- - -Sucessfull response will contain single property URL with the link to the generated file which will be available for download -within next one hour: - -[source,json] ----- -{ - "url": "" -} - ----- - - -Feel free to use provided API Key `jYXipZWOlU18gqyogkRSG4GgKdymodDY4Hj5BkfO` for testing or mailto:vladimir+sheet.rest@orany.cz?subject=Sheet.REST+API+Key&body=Hello,+I+would+like+an+dedicated+access+for+Sheet.REST+because+...[ask for a dedicated one]. -Use the JSON and YAML sections of the examples for syntax details. Sheet.REST is currently in public beta. == Writing Spreadsheets