API docs
Path | Method | Arguments | Authorisation | Description |
---|---|---|---|---|
/analytics/create | POST | None | Registers information about the page navigated to | |
/analytics/load-all | GET | Admin only | Loads all raw analytic points | |
/analytics/load | GET | Admin only | Loads a summary of unique analytic points | |
/auth/load | GET | None | Loads the currently authenticated used. Returns null if signed out | |
/auth/logout | POST | None | Logs out the currently authenticated user | |
/auth/request-verification-email | POST | Any user | Resends an email verification email | |
/auth/verify-email | POST | None | Verify an email address with a secret verification key | |
/emails/load | GET | Admin only | Loads emails that have been sent | |
/emails/resend | POST | Admin only | Resends an email that's stored in the database | |
/magic-links/login | POST | None | Login using a secret magic-link key | |
/magic-links/request | POST | None | Request a magic link for a given account using the account's email address | |
/data-management/backup | GET | Admin only | Returns a file containing a full data backup for the site | |
/data-management/delete-entity | POST | Admin only | Remove a previously deleted entity completely from the DB | |
/data-management/delete-set | POST | Admin only | Remove an entire collection from the DB | |
/data-management/restore | POST | Admin only | Restore all the data from a backup file | |
/notifications/create | POST | Admin only | Creates a notification which will be show at the top of the site | |
/notifications/delete | POST | Admin only | Deletes a notification | |
/notifications/load-all | GET | Any user - only an admin can see deleted notifications | Load all notifications | |
/notifications/load/:id | GET | |||
/notifications/update | POST | Admin only | Update a given notification | |
/users/create | POST | None - only an admin can create other admin users | Create a user | |
/users/delete | POST | The user being deleted, or an admin only | Delete a user | |
/users/load | GET | The user being loaded, or an admin only | Load a given user | |
/users/load-all | GET | Admin only | Load all users | |
/users/sign-up | POST | None | Create a user, and sign in as that user at the same time | |
/users/update | POST | Any user - only an admin can promote other users to admin | Update a given user | |
/blogs/create | POST | Admin only | Create a new blog | |
/blogs/delete | POST | Admin only | Remove a blog | |
/blogs/load-all | GET | None | Load all blogs. If not admin, only non-deleted, published blogs will be loaded | |
/blogs/load/:id | GET | id: the blog ID to load | None | Load a single blog. If not admin, will fail if deleted or not published |
/blogs/update | POST | Admin only | Update a blog | |
/books/create | POST | Admin only | List a new book | |
/books/delete | POST | Admin only | Remove a book | |
/books/load-all | GET | None | Load all books. If not admin, only non-deleted books will be loaded. | |
/books/update | POST | Admin only | Update a book | |
/make-payment/load | POST | TODO | TODO | |
/make-payment/create-intent | POST | TODO | TODO | |
/make-payment/resend-receipt | POST | Admin only | TODO | |
/payments/create | POST | TODO | TODO | |
/payments/delete | POST | TODO | TODO | |
/payments/load-all | GET | TODO | TODO | |
/support/create | POST | Admin only | TODO | |
/support/delete | POST | Admin only | TODO | |
/support/load | GET | None | TODO | |
/photo-showcase/load-all | GET | None | Load images from Flickr showcase album |