You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Bol.com Retailer API client for PHP
2
-
This is an open source PHP client for the [Bol.com Retailer API](https://api.bol.com/retailer/public/Retailer-API/v10/releasenotes.html) version 10.4.
2
+
This is an open source PHP client for the [Bol.com Retailer API](https://api.bol.com/retailer/public/Retailer-API/v10/releasenotes.html) version 10.6.
3
3
4
4
## Installation
5
5
This project can easily be installed through Composer:
@@ -179,10 +179,15 @@ Please follow the guidelines below if you want to contribute.
179
179
- Keep in mind that we want to support PHP 7.1 as long as possible.
180
180
181
181
## Generated Models and Client
182
-
The Client and all models are generated by the supplied [Retailer API specifications](https://api.bol.com/retailer/public/apispec/Retailer%20API%20-%20v10) (`src/OpenApi/retailer.json`) and [Shared API specification](https://api.bol.com/retailer/public/apispec/Shared%20API%20-%20v10) (`src/OpenApi/shared.json`). These specifications are merged. Generating the code ensures there are no typos, not every operation needs a test and future (minor) updates to the specifications can easily be applied. To build the classes for the latest Bol Retailer API version, replace the two specification files with the latest version first.
182
+
The Client and all models are generated by the supplied [Retailer API specifications](https://api.bol.com/retailer/public/apispec/Retailer%20API%20-%20v10) (`src/OpenApi/retailer.json`) and [Shared API specification](https://api.bol.com/retailer/public/apispec/Shared%20API%20-%20v10) (`src/OpenApi/shared.json`). These specifications are merged. Generating the code ensures there are no typos, not every operation needs a test and future (minor) updates to the specifications can easily be applied.
183
183
184
184
The generated classes contain all data required to properly map method arguments and response data to the models: the specifications are only used to generate them.
185
185
186
+
To build the classes for the latest Bol Retailer API version, let the code download the newest specs with this script:
187
+
```
188
+
composer run-script download-specs
189
+
```
190
+
186
191
### Client
187
192
The Client contains all operations specified in the specifications. The 'operationId' value is converted to camelCase and used as method name for each operation.
0 commit comments