kubomikita / smartemailing-pid
Smartemailing.cz HR task.
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >= 8.1
- guzzlehttp/guzzle: ^7.8
- latte/latte: ^3.0
- nette/application: ^3.1
- nette/bootstrap: ^3.2
- nette/caching: ^3.2
- nette/database: ^3.1
- nette/di: ^3.1
- nette/forms: ^3.1
- nette/http: ^3.2
- nette/mail: ^4.0
- nette/robot-loader: ^4.0
- nette/security: ^3.1
- nette/utils: ^4.0
- tracy/tracy: ^2.9
Requires (Dev)
- nette/tester: ^2.4
- symfony/thanks: ^1
This package is auto-updated.
Last update: 2024-11-17 17:22:50 UTC
README
Smartemailing PID API
Table Of Contents
Built With
Nette framework v3.2, PHP >= 8.1, MariaDB 10.6
Getting Started
To get a local copy up and running follow these simple example steps.
Installation
This is an example of how to list things you need to use the software and how to install them using composer.
composer create-project --ignore-platform-reqs kubomikita/smartemailing-pid /path-to-your-project-directory
Create database from .sql file stored in:
/path-to-your-project-directory/database/create.sql
Setup credentials to connect to database in:
/path-to-your-project-directory/config/local.neon
Run app in your prefered browser.
Usage
First sync data with Open data PID with PHP-CLI
php /path-to-your-project-directory/www/index.php Cron:SyncPid
API endpoint for list all PID points
GET http://localhost/path-to-your-project-directory/www/
API endpoint for list all opened PID points
GET http://localhost/path-to-your-project-directory/www/?isOpen=1
API endpoint for list all opened PID points in specific date and time
GET http://localhost/path-to-your-project-directory/www/?isOpen=1&dateTime=2023-11-17T15:40
Query parameter dateTime can be integer representing UNIX TIMESTAMP
If given dateTime is not valid, endpoint uses actual date and time.