mirror of
https://github.com/zen-browser/rices.git
synced 2025-07-07 17:05:40 +02:00
spaces storage
This commit is contained in:
parent
079cde591e
commit
f05fd437aa
14 changed files with 256 additions and 100 deletions
|
@ -1,5 +0,0 @@
|
|||
@baseUrl = http://localhost:3000
|
||||
@previous_slug = cool-zenrice-test-base-0ae004db-fdca-4df6-8833-1104ac1662f6
|
||||
|
||||
|
||||
GET {{baseUrl}}/rices/{{previous_slug}}
|
|
@ -1,6 +0,0 @@
|
|||
@baseUrl = http://localhost:3000
|
||||
@previous_slug = cool-zenrice-aurora2-b970a742-789c-4349-8a4d-da63c8bbe77d
|
||||
@previous_token = 03fbfdb4-d3a5-4d64-8740-feac7d32e7a8
|
||||
|
||||
DELETE {{baseUrl}}/rices/{{previous_slug}}
|
||||
x-zen-shared-token: {{previous_token}}
|
5
test/restclient/rice/02_download_rice.http
Normal file
5
test/restclient/rice/02_download_rice.http
Normal file
|
@ -0,0 +1,5 @@
|
|||
@baseUrl = http://localhost:3000
|
||||
@previous_slug = cool-zenrice-test-base-a069a4c2-237d-433f-ab1c-38c6e6ba5244
|
||||
|
||||
|
||||
GET {{baseUrl}}/rices/{{previous_slug}}
|
|
@ -1,6 +1,6 @@
|
|||
@baseUrl = http://localhost:3000
|
||||
@previous_slug = cool-zenrice-test-base64211-5f874c8c-71f7-4b45-830a-aa86c9328455
|
||||
@previous_token = 84780af0-191e-4f77-8c23-25165c89d27e
|
||||
@previous_slug = cool-zenrice-test-base-1d576eeb-de28-4df8-a12f-bcfc8f0e9b6e
|
||||
@previous_token = 00472a9f-8a8c-423d-b4a5-7137c4cc13f6
|
||||
|
||||
PUT {{baseUrl}}/rices/{{previous_slug}}
|
||||
Content-Type: application/json
|
6
test/restclient/rice/04_delete_rice.http
Normal file
6
test/restclient/rice/04_delete_rice.http
Normal file
|
@ -0,0 +1,6 @@
|
|||
@baseUrl = http://localhost:3000
|
||||
@previous_slug = cool-zenrice-test-base-1d576eeb-de28-4df8-a12f-bcfc8f0e9b6e
|
||||
@previous_token = 00472a9f-8a8c-423d-b4a5-7137c4cc13f6
|
||||
|
||||
DELETE {{baseUrl}}/rices/{{previous_slug}}
|
||||
x-zen-shared-token: {{previous_token}}
|
30
test/restclient/spaces/01_create_space.http
Normal file
30
test/restclient/spaces/01_create_space.http
Normal file
|
@ -0,0 +1,30 @@
|
|||
@baseUrl = http://localhost:3000
|
||||
|
||||
POST {{baseUrl}}/spaces
|
||||
Content-Type: application/json
|
||||
x-zen-shared-name: cool-zenrice-test-base
|
||||
x-zen-shared-author: jhon@doe.com
|
||||
User-Agent: ZenBrowser/1.2b.0 (EndeavourOS x86_64)
|
||||
|
||||
{
|
||||
"space_id": "UNIQUE-IDENTIFIER",
|
||||
"owner_id": "USER_OR_TEAM_ID",
|
||||
"name": "Project X Workspace",
|
||||
"description": "Workspace for Project X collaboration",
|
||||
"tabs": [
|
||||
{
|
||||
"url": "https://example.com",
|
||||
"title": "Example Site",
|
||||
"pinned": true,
|
||||
"archived": false,
|
||||
"metadata": {
|
||||
"last_accessed": "2024-02-20T14:30:00Z",
|
||||
"preview_image": "base64_thumbnail"
|
||||
}
|
||||
}
|
||||
],
|
||||
"permissions": {
|
||||
"public_sharing": false,
|
||||
"edit_restrictions": "owner_only"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue