-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements: New architecture, new API, new features and fixes
- Loading branch information
Showing
23 changed files
with
1,205 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
## Easy Notes API | ||
### In English | ||
The data is sent in XML markup. The text of the note is converted into a sequence of characters - "x" + character number. For example, the word "Hello" is converted to "x72x101x108x108x111". | ||
The Windows app is a notes server. The data is sent in XML markup. The text of the note is converted into a sequence of characters - "x" + character number. For example, the word "Hello" is converted to "x72x101x108x108x111". | ||
|
||
| Request | Request type | Description | Example | | ||
| Request | Request type | Description | Value / Status | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| `IP:PORT/api/getnotes` | GET | Getting a list with identifiers (Unix timestamp) and note times (Unix timestamp with UTC offset). | <notes><br><note id="1553287432" datetime="1553301832"></note><br><note id="1553287428" datetime="1553301828"></note><br></notes> | | ||
| `IP:PORT/api/getfullnotes` | GET | Get a list with ids, notes and note times. | <notes><br><note id="1553285632" datetime="1553300032">x72x101x108x108x111</note><br><note id="1553248570" datetime="1553262970">x72x101x108x108x111</note><br></notes> | | ||
| `IP:PORT/api/getnote=ID` | GET | Getting a note by id. | <notes><br><note id="1553285632" datetime="1553300032">x72x101x108x108x111</note><br></notes> | | ||
| `IP:PORT/api/syncnotes` | POST | Sending created and modified notes by the client. | <actions><br><insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert><br><update id="1553248570" datetime="1553262970">x72x101x108x108x111</update><br><delete id="1553248570"></delete><br></actions> | | ||
| `IP:PORT/api/connecttest` | GET | Getting the server availability status. | "ok" | | ||
| `IP:PORT/api/auth?id=DEVICE` | GET | Request to add to the list of authorized devices. | "auth:ok" or "auth:denied" | | ||
| `IP:PORT/api/notes?id=DEVICE` | GET | Getting a list with identifiers (Unix timestamp), notes and note times (Unix timestamp with UTC offset). | <notes><br><note id="1553285632" datetime="1553300032">x72x101x108x108x111</note><br><note id="1553248570" datetime="1553262970">x72x101x108x108x111</note><br></notes> | | ||
| `IP:PORT/api/actions?id=DEVICE` | GET | Receiving new changes from the server. | <actions><br><insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert><br><update id="1553248570" datetime="1553262970">x72x101x108x108x111</update><br><delete id="1553248570"></delete><br></actions> | | ||
| `IP:PORT/api/received?id=DEVICE` | GET | Confirmation of receiving new changes from the server. | "ok" or "auth:denied" | | ||
| `IP:PORT/api/syncnotes?id=DEVICE` | POST | Sending new changes from the client. | <actions><br><insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert><br><update id="1553248570" datetime="1553262970">x72x101x108x108x111</update><br><delete id="1553248570"></delete><br></actions> | | ||
|
||
IP is the address running the application for Windows. The default port is 735. | ||
`IP` is the address running the application for Windows. The default port is 735. `DEVICE` is the name of the device, for example `Android_g9N1z5S2` or `iOS_rM5s3Gz7`. | ||
|
||
### На русском | ||
Данные пересылаются в XML разметке. Текст заметки конвертируется в последовательность символов - "x" + номер символа. Например, слово "Привет" конвертируется в "x1055x1088x1080x1074x1077x1090". | ||
Приложение для Windows является сервером заметок. Данные пересылаются в XML разметке. Текст заметки конвертируется в последовательность символов - "x" + номер символа. Например, слово "Привет" конвертируется в "x1055x1088x1080x1074x1077x1090". | ||
|
||
| Запрос | Тип запроса | Описание | Пример | | ||
| Запрос | Тип запроса | Описание | Значение / Статус | | ||
| ------------- | ------------- | ------------- | ------------- | | ||
| `IP:PORT/api/getnotes` | GET | Получение списка с идентификаторами (Unix timestamp) и времен заметки (Unix timestamp с UTC смещением). | <notes><br><note id="1553287432" datetime="1553301832"></note><br><note id="1553287428" datetime="1553301828"></note><br></notes> | | ||
| `IP:PORT/api/getfullnotes` | GET | Получение списка с идентификаторами, заметками и времен заметок. | <notes><br><note id="1553285632" datetime="1553300032">x72x101x108x108x111</note><br><note id="1553248570" datetime="1553262970">x72x101x108x108x111</note><br></notes> | | ||
| `IP:PORT/api/getnote=ID` | GET | Получение содержимого заметки по идентификатору. | <notes><br><note id="1553285632" datetime="1553300032">x72x101x108x108x111</note><br></notes> | | ||
| `IP:PORT/api/syncnotes` | POST | Отправка созданных и измененных клиентом заметок. | <actions><br><insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert><br><update id="1553248570" datetime="1553262970">x72x101x108x108x111</update><br><delete id="1553248570"></delete><br></actions> | | ||
| `IP:PORT/api/connecttest` | GET | Получение статуса доступности сервера. | "ok" | | ||
| `IP:PORT/api/auth?id=DEVICE` | GET | Запрос на добавление в список авторизованных устройств. | "auth:ok" или "auth:denied" | | ||
| `IP:PORT/api/notes?id=DEVICE` | GET | Получение списка с идентификаторами (Unix timestamp), заметками и временем заметок (Unix timestamp с UTC смещением). | <notes><br><note id="1553285632" datetime="1553300032">x72x101x108x108x111</note><br><note id="1553248570" datetime="1553262970">x72x101x108x108x111</note><br></notes> | | ||
| `IP:PORT/api/actions?id=DEVICE` | GET | Получение новых изменений от сервера. | <actions><br><insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert><br><update id="1553248570" datetime="1553262970">x72x101x108x108x111</update><br><delete id="1553248570"></delete><br></actions> | | ||
| `IP:PORT/api/received?id=DEVICE` | GET | Подтверждение получения новых изменений от сервера. | "ok" или "auth:denied" | | ||
| `IP:PORT/api/syncnotes?id=DEVICE` | POST | Отправка новых изменений от клиента. | <actions><br><insert id="1553285632" datetime="1553300032">x72x101x108x108x111</insert><br><update id="1553248570" datetime="1553262970">x72x101x108x108x111</update><br><delete id="1553248570"></delete><br></actions> | | ||
|
||
IP это адрес, с запущенным приложением для Windows. Порт по умолчанию 735. | ||
`IP` это адрес, с запущенным приложением для Windows. Порт по умолчанию 735. `DEVICE` это название устройства, например, `Android_g9N1z5S2` или `iOS_rM5s3Gz7`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
<widget xmlns = "http://www.w3.org/ns/widgets" | ||
xmlns:gap = "http://phonegap.com/ns/1.0" | ||
id = "com.r57zone.easynotes" | ||
versionCode = "14" | ||
version = "0.8.7" > | ||
versionCode = "15" | ||
version = "1.0.0" > | ||
|
||
<!-- versionCode is optional and Android only --> | ||
<name>EasyNotes</name> | ||
|
@@ -12,14 +12,14 @@ | |
<author href="https://r57zone.github.io" email="[email protected]">r57zone</author> | ||
<icon src="icon.png" /> | ||
|
||
<allow-intent href="*" /> | ||
<allow-intent href="*" /> | ||
<allow-intent href="*" /> | ||
<access origin="*" /> | ||
<allow-intent href="*" /> | ||
<allow-navigation href="*"/> | ||
|
||
<preference name="android-minSdkVersion" value="21" /> | ||
<preference name="android-targetSdkVersion" value="26" /> | ||
|
||
<plugin name="cordova-plugin-whitelist" source="npm" spec="*" /> | ||
|
||
<plugin name="cordova-plugin-whitelist" source="npm" spec="*"/> | ||
<plugin name="cordova-plugin-qrscanner" spec="~2.4.0" /> | ||
|
||
</widget> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.