pms
pms copied to clipboard
14.0 pms api rest
This pull request introduces a new API REST module for the property management system (PMS). The key changes include the addition of new controllers, data models, and services, as well as updates to the module's manifest file and the inclusion of various data files for security, reports, and email templates.
New Module Introduction:
pms_api_rest/__init__.py: Initialized the new module by importing controllers, datamodels, services, models, and http.pms_api_rest/__manifest__.py: Defined the module's metadata, dependencies, external Python dependencies, data files, and demo files.
Controllers and Data Models:
pms_api_rest/controllers/__init__.py: Added thepms_restcontroller.pms_api_rest/controllers/pms_rest.py: Created a base REST API controller with specified configurations.pms_api_rest/datamodels/__init__.py: Imported various data models related to PMS entities such as reservations, properties, services, and more.pms_api_rest/datamodels/feed_post.pyandpms_api_rest/datamodels/pms_account_journal.py: Defined data models for feed posts and account journals using Marshmallow for serialization. [1] [2]
Data Files:
pms_api_rest/data/auth_jwt_validator.xml: Added a JWT validator configuration for API authentication.pms_api_rest/data/cron_jobs.xml: Scheduled a cron job to clean API logs daily.pms_api_rest/data/pms_app_reset_password_template.xml: Created an email template for resetting passwords.pms_api_rest/data/sql_reports.xml: Defined SQL reports for exporting departures, arrivals, and services data.
Documentation:
pms_api_rest/README.rst: Added a comprehensive README file for the new module, including badges, a table of contents, bug tracker information, credits, and contribution guidelines.