Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This API offers routes for reading products from a movie store. Implemented in Node.js with Express, the API allows you to consult all products or a specific product, as well as validating access using Basic Authentication. This project is ideal for developers looking for a simple, functional example of a RESTful API with basic authentication.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages