AddonsRoute.php
5 years ago
CurrencyRoute.php
5 years ago
FeaturesRoute.php
5 years ago
FormRoute.php
5 years ago
LocationRoute.php
5 years ago
README.md
5 years ago
SettingsRoute.php
5 years ago
README.md
9 lines
| 1 | # Onboarding REST Routes |
| 2 | |
| 3 | ## Extending Settings Endpoints |
| 4 | |
| 5 | The default settings endpoint is `onboarding/settings/{setting}` where `{setting}` is the name of the setting being updated. |
| 6 | |
| 7 | This endpoint structure can be extended by defining a static route that matches a specific setting. |
| 8 | |
| 9 | Using the example of [](CurrencyRoute.phpCurrencyRoute.php](CurrencyRoute.php](CurrencyRoute.php), updating the currency setting has side effects specific, namely updating the currency separators, sybmol placement, and the number of decimals. Extending the `onboarding/settings/{setting}` endpoint by specifying 'onboarding/settings/currency` maintains the expected URL structure for the consuming application, while allowing for the specific setting to extend its own update logic. |