You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This is the main entry point to the Joplin API. You can access various services using the provided accessors.
15
17
*
16
-
* **This is a beta API**
18
+
* The API is now relatively stable and in general maintaining backward compatibility is a top priority, so you shouldn't except much breakages.
17
19
*
18
-
* Please note that the plugin API is relatively new and should be considered Beta state. Besides possible bugs, what it means is that there might be necessary breaking changes from one version to the next. Whenever such change is needed, best effort will be done to:
20
+
* If a breaking change ever becomes needed, best effort will be done to:
19
21
*
20
-
* - Maintain backward compatibility;
21
-
* - When possible, deprecate features instead of removing them;
22
+
* - Deprecate features instead of removing them, so as to give you time to fix the issue;
22
23
* - Document breaking changes in the changelog;
23
24
*
24
-
* So if you are developing a plugin, please keep an eye on the changelog as everything will be in there with information about how to update your code. There won't be any major API rewrite or architecture changes, but possibly small tweaks like function signature change, type change, etc.
25
-
*
26
-
* Eventually, the plugin API will be versioned to make this process smoother.
25
+
* So if you are developing a plugin, please keep an eye on the changelog as everything will be in there with information about how to update your code.
Copy file name to clipboardExpand all lines: api/JoplinData.d.ts
+29-3Lines changed: 29 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
+
import{ModelType}from'../../../BaseModel';
2
+
importPluginfrom'../Plugin';
1
3
import{Path}from'./types';
2
4
/**
3
-
* This module provides access to the Joplin data API: https://joplinapp.org/api/references/rest_api/
5
+
* This module provides access to the Joplin data API: https://joplinapp.org/help/api/references/rest_api
4
6
* This is the main way to retrieve data, such as notes, notebooks, tags, etc.
5
7
* or to update them or delete them.
6
8
*
@@ -11,12 +13,12 @@ import { Path } from './types';
11
13
* In general you would use the methods in this class as if you were using a REST API. There are four methods that map to GET, POST, PUT and DELETE calls.
12
14
* And each method takes these parameters:
13
15
*
14
-
* * `path`: This is an array that represents the path to the resource in the form `["resouceName", "resourceId", "resourceLink"]` (eg. ["tags", ":id", "notes"]). The "resources" segment is the name of the resources you want to access (eg. "notes", "folders", etc.). If not followed by anything, it will refer to all the resources in that collection. The optional "resourceId" points to a particular resources within the collection. Finally, an optional "link" can be present, which links the resource to a collection of resources. This can be used in the API for example to retrieve all the notes associated with a tag.
16
+
* * `path`: This is an array that represents the path to the resource in the form `["resourceName", "resourceId", "resourceLink"]` (eg. ["tags", ":id", "notes"]). The "resources" segment is the name of the resources you want to access (eg. "notes", "folders", etc.). If not followed by anything, it will refer to all the resources in that collection. The optional "resourceId" points to a particular resources within the collection. Finally, an optional "link" can be present, which links the resource to a collection of resources. This can be used in the API for example to retrieve all the notes associated with a tag.
15
17
* * `query`: (Optional) The query parameters. In a URL, this is the part after the question mark "?". In this case, it should be an object with key/value pairs.
16
18
* * `data`: (Optional) Applies to PUT and POST calls only. The request body contains the data you want to create or modify, for example the content of a note or folder.
17
19
* * `files`: (Optional) Used to create new resources and associate them with files.
18
20
*
19
-
* Please refer to the [Joplin API documentation](https://joplinapp.org/api/references/rest_api/) for complete details about each call. As the plugin runs within the Joplin application **you do not need an authorisation token** to use this API.
21
+
* Please refer to the [Joplin API documentation](https://joplinapp.org/help/api/references/rest_api) for complete details about each call. As the plugin runs within the Joplin application **you do not need an authorisation token** to use this API.
20
22
*
21
23
* For example:
22
24
*
@@ -38,10 +40,34 @@ import { Path } from './types';
* See the documentation of the [[ExportModule]] and [[ImportModule]] for more information.
11
11
*
12
-
* You may also want to refer to the Joplin API documentation to see the list of properties for each item (note, notebook, etc.) - https://joplinapp.org/api/references/rest_api/
12
+
* You may also want to refer to the Joplin API documentation to see the list of properties for each item (note, notebook, etc.) - https://joplinapp.org/help/api/references/rest_api
13
+
*
14
+
* <span class="platform-desktop">desktop</span>: While it is possible to register import and export
15
+
* modules on mobile, there is no GUI to activate them.
* This API allows registering new settings and setting sections, as well as getting and setting settings. Once a setting has been registered it will appear in the config screen and be editable by the user.
0 commit comments