Logo: Relish

  1. Sign in

Project: Product-service

Product 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 over 4 years ago by John James.