1
0
mirror of synced 2024-11-27 07:46:07 +03:00
api-client-php/doc/customization/examples/custom-api-methods-with-dto
2021-11-25 11:02:42 +03:00
..
src Сustom methods support 2021-11-25 11:02:42 +03:00
app.php Сustom methods support 2021-11-25 11:02:42 +03:00
composer.json Сustom methods support 2021-11-25 11:02:42 +03:00
README.md Сustom methods support 2021-11-25 11:02:42 +03:00

Custom API methods with DTO

This example demonstrates how you can use your custom serializer with custom DTOs to implement API methods.

How to run the project

  1. Open app.php and change credentials and the site to your data.
  2. Run these commands:
composer install
php app.php

You will see something like this:

Created customer using custom methods. ID: 5633

This means that the project works as expected.

Navigation