Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joaonetogit/api-movie-store

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.
https://github.com/joaonetogit/api-movie-store

basicauthentication express movies-api nodejs pnpm vercel

Last synced: 7 days ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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:

```bash
git clone https://github.com/joaonetogit/api-movie-store.git
```

2. Install the dependencies:

```bash
pnpm install
```

## Use

To start the server, run the following command:

```bash
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