Products

STAGING_URL: https://switch-api-staging.herokuapp.com
LIVE_URL: https://switchapi.azurewebsites.net

Get Vendor Products Attribute

GET https://switch-api-staging.herokuapp.com/vendor/products/attributes

This endpoint allows you to get free cakes.

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

{
    "message": "Invalid token",
    "error_code": "INVALID_TOKEN"
}

Get Vendor Products

GET https://switch-api-staging.herokuapp.com/vendor/products

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

{
    "message": "Invalid token",
    "error_code": "INVALID_TOKEN"
}

Post Vendor Products

POST https://switch-api-staging.herokuapp.com/vendor/products

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

{
    "message": "Invalid token",
    "error_code": "INVALID_TOKEN"
}

Get Vendor Product By id

GET https://switch-api-staging.herokuapp.com/vendor/products/:id

This endpoint gets the info about a particular product

Headers

Name
Type
Description

auth_token

string

The Format for this auth_token is Bearer token_string

Update Vendor Product

PATCH https://switch-api-staging.herokuapp.com/vendor/products/:id

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

Update vendor product

PUT https://switch-api-staging.herokuapp.com/vendor/products/:id

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

Delete product

DELETE https://switch-api-staging.herokuapp.com/vendor/products/:id

Headers

Name
Type
Description

auth_token

string

The format for auth_token is Bearer token_string

Last updated

Was this helpful?