weevely api
vely API Released
macOS installation:
You can easily install those via Homebrew:
brew install php mysql composerWindows installation:
You can easily host this API on your server if you want to. But if you only want to work with data that is used by official Weevely, you can skip this step.
To host the API just follow these steps:
composer installdatabase.env file and fill it with your data accordingly to .env.example filephp artisan migrate to fill database with required tablesphp artisan db:seedphp artisan serve| Action | Request | Method | Requirements |
|---|---|---|---|
| Register | /api/auth/register |
POST |
Data |
| Sign in | /api/auth/signin |
POST |
Data |
| Sign out | /api/auth/signout |
POST |
Bearer token |
| Reset password | /api/auth/reset-password |
POST |
Data |
| Change password | /api/auth/reset-password/{token} |
POST |
Data, token |
| Remove request | /api/auth/reset-password/{token}/remove |
GET |
Token |
| Refresh token | /api/auth/refresh |
GET |
Bearer token |
| Get user | /api/auth/me |
GET |
Bearer token |
| Action | Request | Method | Requirements |
|---|---|---|---|
| Update data | /api/users/me |
PATCH |
Bearer token, data |
| Upload avatar | /api/users/me/avatar |
POST |
Bearer token, data |
| Actionn | Request | Method | Requirements |
|---|---|---|---|
| Get my calendars | /api/calendars/my/{type} |
GET |
Bearer token, type |
| Create calendar | /api/calendars/my |
POST |
Bearer token, data (optional) |
| Get calendar | /api/calendars/{calendar_id} |
GET |
Bearer token, calendar_id |
| Update calendar | /api/calendars/{calendar_id} |
PATCH |
Bearer token, calendar_id, data |
| Delete calendar | /api/calendars/{calendar_id} |
DELETE |
Bearer token, calendar_id |
| Share calendar | /api/calendars/{calendar_id}/share |
POST |
Bearer token, calendar_id, users (json string) |
| Hide calendar | /api/calendars/{calendar_id}/hide |
POST |
Bearer token, calendar_id |
| Get events | /api/calendars/{calendar_id}/events |
GET |
Bearer token, calendar_id |
| Create event | /api/calendars/{calendar_id}/events |
POST |
Bearer token, calendar_id, data (optional) |
| Update event | /api/calendars/{calendar_id}/events/{event_id} |
PATCH |
Bearer token, calendar_id, data |
| Delete event | /api/calendars/{calendar_id}/events/{event_id} |
DELETE |
Bearer token, calendar_id |
| Add holidays | /api/calendars/{calendar_id}/holidays |
POST |
Bearer token, calendar_id, data (country, year) |
Don't forget to check out Weevely with Next.js
Also check out my other projects and visit my website!