1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Update website

This commit is contained in:
Laurent Cozic
2021-02-01 12:16:03 +00:00
parent 67cbc068c6
commit dac6c5fde2
79 changed files with 1617 additions and 270 deletions

View File

@@ -322,6 +322,20 @@ Creating a new resource is special because you also need to upload the file. Unl
The "data" field is required, while the "props" one is not. If not specified, default values will be used.
**From a plugin** the syntax to create a resource is also a bit special:
```javascript
await joplin.data.post(
["resources"],
null,
{ title: "test.jpg" }, // Resource metadata
[
{
path: "/path/to/test.jpg", // Actual file
},
]
);
```
## PUT /resources/:id
Sets the properties of the resource with ID :id