!!! DEVELOPMENT !!! deployment of the central collector system
First copy the example .env.example file and fill the database credentials and replace SYSTEM_PUSH_PAGE with the appropriate URL.
cp .env.example .env
vim .envInstall PHP dependencies:
composer install
php artisan key:generate
php artisan migrate
php artisan passport:installInstall HTML/JavaScript dependencies:
npm install
npm run prodphp artisan cache:clear
php artisan serveRequires a GET-Request
Returns a List of all currently registered RSS-Feeds with the individual subscribed users.
Allows for user registration. Requires a POST request containing the following fields:
- email
unique, max-length 255 - password
between 5 and 32 chars - name
max-length 255
Endpoint to log into the system.
A successful request will return a JWT which grants access to all other endpoints.
Requires a POST request containing the following fields:
- password
All User-Endpoints need to be accessed with a valid JWT generated by the /api/v1/login endpoint.
The token should be send in the Authorization header, using the Bearer schema.
Authorization: Bearer {token}
Requires a GET-Request
Returns the current authenticated user object.
Requires a GET-Request
Returns the RSS-Feeds of the current authenticated user.
Adds a new RSS-Feed to the current authenticated user. Requires a POST request containing the following field:
- link
Link to the.rssresource
Requires a DELETE-Request and removes an existing RSS-Feed from the current authenticated user.
Requires a GET-Request and returns all categories defined by the current authenticated user.
Adds a new category to the current authenticated user Requires a POST-Request containing the following fields:
name
Category title stringmeta(optional)
JSON object containing the categories meta-data
Removes an existing category with the given {id} from the current authenticated users.
Pushes a new page into the ElastiFeed System. Requires a POST-Request containing the following fields:
url
Link as a string to push into the system.categories(optional)
array of strings containing the pages category names