Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Last active December 28, 2015 12:29
Show Gist options
  • Save tugberkugurlu/7500596 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/7500596 to your computer and use it in GitHub Desktop.

Endpoints

HTTP GET /stores => Get the stores

HTTP GET /stores/{storeId} => Get a single store.

HTTP GET /products => Get the products

HTTP GET /products/{productId} => Get a single product.

Option 1:

HTTP GET /stores/{storeId}/products => Get the products under the specific store

Option 2:

HTTP GET /products?storeId={storeId} => Get the products under the specific store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment