helsingborg-stad / modularity-resource-booking
Book a resource for a predefined amount of time
Installs: 332
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- composer/installers: ~1.0
- helsingborg-stad/acf-export-manager: >=1.0.0
- olssonm/identity-number: ^5.3
- philo/laravel-blade: ^3.1
- dev-master
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.1
- dev-develop
- dev-webpack-config
- dev-feature/mail
- dev-registration-form
- dev-user-account
- dev-slots
- dev-booking-form
- dev-feature/nonce
- dev-feature/login
- dev-develop-media
- dev-users
This package is auto-updated.
Last update: 2024-12-05 21:54:38 UTC
README
Book a resource for a predefined period of time. This plugin provides a api-based frontend.
Developement mode
You can temporarily disable all security features by defining 'RESOURCE_BOOKING_DISABLE_SECURITY' to 'true' in your wp-config.php file. This bypasses most check that looks capabilities or logged in users.
Constants
- RESOURCE_BOOKING_CURRENCY_SYMBOL - Defines a currency symbol appended to currency.
REST API
This plugin creates a complete API to integrate any frontend solution. The plugin is deliverd with a local frontend solution, but can work with a offsite frontend solution. Listed below is a index of possible endpoints, these should be prefixed with your json-url in WordPress, for example https://develop.local/wp-json/.
For detailed documentation of the API, please refer to our Postman page at https://documenter.getpostman.com/view/5930358/RzffHp48 .
Nonces
All requests interacting with user bound data this api requires a nonce field to be posted with the request. Documentation here: https://developer.wordpress.org/rest-api/using-the-rest-api/authentication/
Users / Customer
ModularityResourceBooking/v1/CreateUser
- Create a userModularityResourceBooking/v1/ModifyUser/ID
- Modifies logged in user
Products
ModularityResourceBooking/v1/Product/ID
- Get a single product.
Package
ModularityResourceBooking/v1/Package/ID
- Get a single package.
Order / Purchase
ModularityResourceBooking/v1/MyOrders
- Get current users orders.ModularityResourceBooking/v1/CreateOrder
- Create an order.ModularityResourceBooking/v1/CancelOrder/ID
- Cancels an order owned by the user.
Time slots
ModularityResourceBooking/v1/Slots
- List all slots, available and unavailable.
Why is the order posttype called purchase?
You cannot name a posttype "order" in WordPress. This is a reserved keyword that will break all post-listings. We have renamed it to "purchase" but still want to present the name as "order" due to simplicity & logical reasons for the user.