To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorProduct service
Retrieve the company catalogue of Products
- Scenarios
-
- Retrieve company catalogue
-
- Given
- Pepper Potts is authenticated
- And
-
Pepper Potts's company has the following product catalogue:
{ "categories":[ { "name":"Compute", "subcategories":[ { "name":"Windows", "products":[ { "name": "Small" }, { "name": "Medium" }, { "name": "Large" } ] }, { "name":"Linux", "products":[ { "name": "Small" }, { "name": "Large" } ] } ] }, { "name":"Storage", "subcategories":[ { "name":"Secondary Storage", "products":[ { "name": "Enterprise" }, { "name": "Essential" } ] }, { "name":"System Disk", "products":[ { "name": "Small" }, { "name": "Large" } ] } ] } ] }
- When
- a request is sent to '/product/catalogue?token={session_token}' using Pepper Potts's token
- Then
- their company's catalogue should be returned
Last published almost 7 years ago by John James.