fix base64 issues

This commit is contained in:
oscargonzalezmoreno@gmail.com 2024-12-26 18:31:57 +01:00
parent 37586abe97
commit 96b3c4f8b5
6 changed files with 167 additions and 19 deletions

View file

@ -1,18 +1,17 @@
@baseUrl = http://localhost:3000
# base64 of following json: ewogICAgImtleSI6ICJ2YWx1ZSIsCiAgICAiZGVzY3JpcHRpb24iOiAiRXhhbXBsZSBjb250ZW50Igp9
# {
# "key": "value",
# "description": "Example content"
# }
# {'key':'value','description':'Example content'}
POST {{baseUrl}}/rices
Content-Type: application/json
{
"name": "cool-zenrice-aurora2",
"content": "ewogICAgImtleSI6ICJ2YWx1ZSIsCiAgICAiZGVzY3JpcHRpb24iOiAiRXhhbXBsZSBjb250ZW50Igp9"
"name": "cool-zenrice-aurora",
"content": "{'key':'value','description':'Example content'}"
}

View file

@ -1,4 +1,4 @@
@baseUrl = http://localhost:3000
@previous_slug = cool-zenrice-aurora-84154784-8dc4-4153-8bd5-fd9f55f03b93
@previous_slug = cool-zenrice-aurora-265e3881-f9de-4bbf-bb22-b9c37dbf04bc
GET {{baseUrl}}/rices/{{previous_slug}}

View file

@ -2,19 +2,18 @@
@previous_slug = cool-zenrice-aurora2-1d1e74b3-8d6d-40ea-bd4f-a6f4ad893f88
@previous_token = be4545f4-d92b-416c-8b3b-50cc9a49dee9
# base64 of following json: ewogICAgImtleSI6ICJuZXdfdmFsdWUiLAogICAgImRlc2NyaXB0aW9uIjogIkV4YW1wbGUgY29udGVudCIKfQ
# {
# "key": "new_value",
# "description": "Example content"
# "key": "value",
# "description": "Example updated content"
# }
# {'key':'value','description':'Example updated content'}
PUT {{baseUrl}}/rices/{{previous_slug}}
Content-Type: application/json
x-rices-token: {{previous_token}}
{
"content": "ewogICAgImtleSI6ICJuZXdfdmFsdWUiLAogICAgImRlc2NyaXB0aW9uIjogIkV4YW1wbGUgY29udGVudCIKfQ"
"content": "{'key':'value','description':'Example updated content'}"
}

View file

@ -1,6 +1,6 @@
@baseUrl = http://localhost:3000
@previous_slug = my-first-zenrice-b7b94d24-ecb6-4495-93de-ba85be2e3052
@previous_token = 6181664b-00e8-4eef-8e23-1f7fa0c64021
@previous_slug = cool-zenrice-aurora-e8abd40d-8657-4ddd-99c5-912cced67497
@previous_token = 2ce5c580-46e5-4a28-adff-30ce5662f29d
DELETE {{baseUrl}}/rices/{{previous_slug}}
x-rices-token: {{previous_token}}