Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/monicaalyssa/movie-api
RESTful API built with Node.js and Mongoose for the PopcornPal application to handle movie and user data.
https://github.com/monicaalyssa/movie-api
express javascript mongodb nodejs
Last synced: about 9 hours ago
JSON representation
RESTful API built with Node.js and Mongoose for the PopcornPal application to handle movie and user data.
- Host: GitHub
- URL: https://github.com/monicaalyssa/movie-api
- Owner: monicaalyssa
- Created: 2024-05-15T02:34:40.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T20:00:40.000Z (8 days ago)
- Last Synced: 2024-11-10T20:25:31.617Z (8 days ago)
- Topics: express, javascript, mongodb, nodejs
- Language: JavaScript
- Homepage:
- Size: 247 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Installation
To use this application locally, follow these steps inside your terminal:
1. Clone this repository to your local machine:
```bash
git clone https://github.com/monicaalyssa/movie-api
```2. Navigate to the project directory: `cd movie-api`
3. Install dependencies: `npm install`
4. Start the development server: `npm start`
5. Open your browser and visit: `http://localhost:8082`## API Endpoints
**Base URL**
```
https://popcornpal-32d285ffbdf8.herokuapp.com/
```#### Existing movie data
GET
/movies
(gets a list of all movies)
##### Parameters
> | None |
> |---------------|##### Responses
> | HTTP Code | Content-Type | Response |
> |---------------|-----------------------------------|---------------------------------------------------------------------|
> | `201` | `application/json; charset=utf-8` | JSON array of objects
GET
/movies/{uuid}
(gets data about a specific movie by id)
##### Parameters
> | Name | Data Type | Description |
> |--------|----------------|------------------------------------------------------|
> | `uuid` | string | The specific movie id |##### Responses
> | HTTP Code | Content-Type | Response |
> |---------------|-----------------------------------|---------------------------------------------------------------------|
> | `201` | `application/json; charset=utf-8` | JSON object
> | `500` | `text/html; charset=utf-8` | `"Error: " + message`