mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-12 23:28:27 -05:00
renamed attachment's parentId to more fitting ownerId
This commit is contained in:
@@ -127,7 +127,7 @@ Content-Type: application/json
|
||||
Authorization: {{authToken}}
|
||||
|
||||
{
|
||||
"parentId": "{{createdNoteId}}",
|
||||
"ownerId": "{{createdNoteId}}",
|
||||
"role": "file",
|
||||
"mime": "plain/text",
|
||||
"title": "my attachment",
|
||||
|
||||
@@ -18,7 +18,7 @@ Authorization: {{authToken}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"parentId": "{{createdNoteId}}",
|
||||
"ownerId": "{{createdNoteId}}",
|
||||
"role": "file",
|
||||
"mime": "text/plain",
|
||||
"title": "my attachment",
|
||||
|
||||
@@ -18,7 +18,7 @@ Authorization: {{authToken}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"parentId": "{{createdNoteId}}",
|
||||
"ownerId": "{{createdNoteId}}",
|
||||
"role": "file",
|
||||
"mime": "text/plain",
|
||||
"title": "my attachment",
|
||||
@@ -55,7 +55,7 @@ Authorization: {{authToken}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"parentId": "root"
|
||||
"ownerId": "root"
|
||||
}
|
||||
|
||||
> {%
|
||||
@@ -76,4 +76,4 @@ Content-Type: application/json
|
||||
> {%
|
||||
client.assert(response.status === 400);
|
||||
client.assert(response.body.code == "PROPERTY_VALIDATION_ERROR");
|
||||
%}
|
||||
%}
|
||||
|
||||
@@ -18,7 +18,7 @@ Authorization: {{authToken}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"parentId": "{{createdNoteId}}",
|
||||
"ownerId": "{{createdNoteId}}",
|
||||
"role": "file",
|
||||
"mime": "text/plain",
|
||||
"title": "my attachment",
|
||||
@@ -36,4 +36,4 @@ Content-Transfer-Encoding: binary
|
||||
|
||||
< ../images/icon-color.png
|
||||
|
||||
> {% client.assert(response.status === 204); %}
|
||||
> {% client.assert(response.status === 204); %}
|
||||
|
||||
@@ -18,7 +18,7 @@ Authorization: {{authToken}}
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"parentId": "{{createdNoteId}}",
|
||||
"ownerId": "{{createdNoteId}}",
|
||||
"role": "file",
|
||||
"mime": "text/plain",
|
||||
"title": "my attachment",
|
||||
|
||||
Reference in New Issue
Block a user