Skip to content

Product detail url #12

Description

@cbts-jonathanarcher

When trying to pull specific details about the products it seems the url is incorrect.

def product(header, uid=None, prod=True): if uid is None: url = env(prod) + '/v2/products' else: url = env(prod) + '/v2/products?productUid=' + uid return Call('get', url, header)

url = env(prod) + '/v2/products?productUid=' + uid
This line doesn't return anything in postman with a valid uid.

The api guide has the url like so:
https://dev.megaport.com/#general-get-product-details
Example URI
GET /v2/product/productUid

possible fix?
url = env(prod) + '/v2/product/' + uid

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions