Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 901 Bytes

README.md

File metadata and controls

43 lines (25 loc) · 901 Bytes

API Movie Store

This is an API for reading products from a movie store, implemented in Node.js with Express. The API allows you to consult all the products or a specific product, as well as validating access using Basic Authentication. The product images are hosted on Amazon S3, ensuring efficient and secure file management.

Installation

  1. Clone this repository:
git clone https://github.com/joaonetogit/api-movie-store.git
  1. Install the dependencies:
pnpm install

Use

To start the server, run the following command:

pnpm start

Endpoints

GET /api/login

Returns the authorization token for the next requests

GET /api/products

Returns all the products in the store.

GET /api/product/:title

Returns a specific product with the given title.

GET /api/products/category/:category

Returns products from a specific category