Skip to content

Тестовое задание от Naumen. Simple Note

License

Notifications You must be signed in to change notification settings

ilyagordeev/note

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1a8063e · Jan 21, 2020

History

21 Commits
Dec 18, 2019
Jan 12, 2020
Dec 18, 2019
Dec 20, 2019
Jan 21, 2020
Dec 25, 2019
Dec 18, 2019
Dec 18, 2019
Dec 18, 2019

Repository files navigation

Simple Note

Тестовое задание от NAUMEN

Implemented on Spring Boot.

To see the result: https://mathic.xyz/

Simple Note API

Получить одну запись:
url: /api
Method: POST
data: {"type: "note", "id": (int)}
Ответ json: {"result":"ok","heading": $text,"text": $text,"id": $int,"timestamp": $timestamp}
	    {"result":"error", "value": error code}
Получить список заголовков:
url: /api
Method: POST
data: {"type: "contents", page: (int)}
Ответ json: {"result":"ok", "value": $html}
Удалить запись:
url: /api
Method: POST
data: {"type: "delete", "id": (int)}
Ответ json: {"result":"ok", "value": 0 если такой записи нет и 1 если удалена успешно}
	    {"result":"error", "value": error code}
Добавить запись:
url: /api
Method: POST
data: {"type: "addnote", "heading": (text), "note": (text)}
Ответ json: {"result":"ok", "value": "Note added"}
	    {"result":"error", "value": error code}
Изменить запись:
url: /api
Method: POST
data: {"type: "edit", "heading": (text), "note": (text), "id": (int)}
Ответ json: {"result":"ok", "value": "Note changed"}
	    {"result":"error", "value": error code}
Поиск по тексту:
url: /api
Method: POST
data: {"type: "search", "text": (text)}
Ответ json: {"result":"ok", "value": $html}
	    {"result": "nothing", "value": "Ничего не найдено"}
Поиск по заголовку:
url: /api
Method: POST
data: {"type: "search_head", "text": (text)}
Ответ json: {"result":"ok", "value": $html}
	    {"result": "nothing", "value": "Ничего не найдено"}

About

Тестовое задание от Naumen. Simple Note

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published