Backend for Flat File Notebook Frontend.
Click login
on the front end once (i.e., call the Auth/Login endpoint) to create a default account using the credentials from config.json
.
Returns the full list of stored items in given file
Creates a new file with given name
List all files that currently exist.
Skip any files that start with a dot .
character.
Save an item to storage
Body:
Name | Type | Description |
---|---|---|
File | string | Name of file to save new item in |
Title | string | Title of new item |
Body | string | Body of new item |
Edit a specific item id in a specific file
Body:
Name | Type | Description |
---|---|---|
Id | int | Index of item we're editing in the list |
File | string | Name of file we're editing an item in |
Title | string | Edited title of item |
Body | string | Edited body of item |
Reorder the list of items in a file
Body:
Name | Type | Description |
---|---|---|
File | string | Name of file we're reordering in |
CurrentPos | int | Current (old) position of the item we're reordering |
NewPos | int | New position of the item |
Delete an item in a file
Body:
Name | Type | Description |
---|---|---|
Id | int | Index of item we're deleting |
File | string | Name of file we're deleting from |
Delete entire list/file
Check auth token
Log in with username and password
Body:
Name | Type | Description |
---|---|---|
User | string | Username |
Pass | string | Password |
Create a new user
Body:
Name | Type | Description |
---|---|---|
User | string | Username |
Pass | string | Password |