|
|
|
@ -73,10 +73,12 @@ The `movies` table will contain the following columns:
|
|
|
|
|
##### Testing the Inventory API |
|
|
|
|
|
|
|
|
|
In order to test the correctness of your API you should use Postman or a |
|
|
|
|
similar tool. You could create one or more tests for every endpoint and then |
|
|
|
|
similar tool. You have to create one or more tests for every endpoint and then |
|
|
|
|
export the configuration, so you will be able to reproduce the tests on |
|
|
|
|
different machines easily. |
|
|
|
|
|
|
|
|
|
> The configuration will be checked during the audit. |
|
|
|
|
|
|
|
|
|
#### API 2: Billing |
|
|
|
|
|
|
|
|
|
##### Definition of the Inventory API |
|
|
|
@ -91,7 +93,6 @@ going to be a "stringified" JSON object as in this example:
|
|
|
|
|
"number_of_items": "5", |
|
|
|
|
"total_amount": "180" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
It will parse the message and create a new entry in the `orders_db` database. |
|
|
|
|