{"info":{"_postman_id":"19d7a0ae-64cc-4522-b044-a329e0bbe8be","name":"Movies App API","description":"<html><head></head><body><h1 id=\"movies-app-api\">🎬 Movies App API</h1>\n<p>This API allows you to manage movies, actors, directors, and genres.<br>Built with Express.js and PostgreSQL, deployed on Render, and consumed by a React frontend hosted on Netlify.</p>\n<h2 id=\"base-url\">Base URL</h2>\n<p><code>https://moviesapp-lc0z.onrender.com</code></p>\n<h2 id=\"entities\">Entities</h2>\n<ul>\n<li><p>🎭 Actors</p>\n</li>\n<li><p>🎬 Directors</p>\n</li>\n<li><p>🎞️ Movies</p>\n</li>\n<li><p>🏷️ Genres</p>\n</li>\n</ul>\n<h2 id=\"authentication\">Authentication</h2>\n<p>No authentication required.</p>\n<h2 id=\"cors\">CORS</h2>\n<p>CORS is currently open to all origins for educational and portfolio purposes. This configuration allows public access from any frontend during development and testing.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🎬 Movies App API","slug":"movies-app-api"}],"owner":"48309056","collectionId":"19d7a0ae-64cc-4522-b044-a329e0bbe8be","publishedId":"2sB3dLUX82","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-11-29T23:05:28.000Z"},"item":[{"name":"Actors","item":[{"name":"Get All Actors","id":"1e3ea323-13da-40ae-8c64-bade8a102fc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/actors","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve all actors from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n     {\n        \"birthday\": \"1988-11-06\",\n        \"id\": 1,\n        \"first_name\": \"Emma\",\n        \"last_name\": \"Stone\",\n        \"nationality\": \"American\",\n        \"image\": \"https://tse4.mm.bing.net/th/id/OIP._QUirznXzIB9rGF73m69SQHaLI?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T01:34:51.650Z\",\n        \"updatedAt\": \"2025-11-28T01:34:51.650Z\",\n        \"movies\": [\n            {\n                \"id\": 1,\n                \"name\": \"Poor Things\",\n                \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\n                \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\n                \"release_year\": 2023,\n                \"createdAt\": \"2025-11-28T01:47:27.050Z\",\n                \"updatedAt\": \"2025-11-29T18:33:28.771Z\",\n                \"actors_movies\": {\n                    \"createdAt\": \"2025-11-28T01:47:27.957Z\",\n                    \"updatedAt\": \"2025-11-28T01:47:27.957Z\",\n                    \"actorId\": 1,\n                    \"movieId\": 1\n                }\n            }\n        ]\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["actors"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1e3ea323-13da-40ae-8c64-bade8a102fc8"},{"name":"Get One Actor","id":"49a6d26d-7c2f-4232-9461-e3387d232e24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/actors/8","description":"<h3 id=\"description\">Description:</h3>\n<p>Retrieve one actor by id from database.</p>\n<h3 id=\"correct-response\">Correct Response:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"birthday\": \"1994-10-23\",\n    \"id\": 8,\n    \"first_name\": \"Margaret \",\n    \"last_name\": \"Qualley\",\n    \"nationality\": \"American\",\n    \"image\": \"https://th.bing.com/th/id/OIP.JZJREyv6GxvKRp4BIkm9qwHaJ4?w=178&amp;h=237&amp;c=7&amp;r=0&amp;o=7&amp;pid=1.7&amp;rm=3\",\n    \"createdAt\": \"2025-11-28T01:44:34.240Z\",\n    \"updatedAt\": \"2025-11-28T01:44:34.240Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["actors","8"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"49a6d26d-7c2f-4232-9461-e3387d232e24"},{"name":"Create An Actor","id":"06a3cbc9-5ab8-4f6c-8034-5c7cf51170d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Zendaya\",\r\n    \"last_name\": \"Stoermer\",\r\n    \"nationality\": \"American\",  \r\n    \"image\": \"https://tse1.explicit.bing.net/th/id/OIP.mOvc4m-2yQTNssMhdG6V0AHaLH?rs=1&pid=ImgDetMain&o=7&rm=3\",\r\n    \"birthday\": \"1996-09-01\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/actors","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Create a new actor into database.</p>\n<h3 id=\"correct-response\">Correct Response:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"birthday\": \"1996-09-01\",\n    \"id\": 34,\n    \"first_name\": \"Zendaya\",\n    \"last_name\": \"Stoermer\",\n    \"nationality\": \"American\",\n    \"image\": \"https://tse1.explicit.bing.net/th/id/OIP.mOvc4m-2yQTNssMhdG6V0AHaLH?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n    \"updatedAt\": \"2025-11-29T20:23:59.211Z\",\n    \"createdAt\": \"2025-11-29T20:23:59.211Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["actors"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"06a3cbc9-5ab8-4f6c-8034-5c7cf51170d5"},{"name":"Update Actor","id":"03d3ca7c-5024-4289-8b3a-bcac15b1043e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Margaret\",\r\n    \"last_name\": \"Qualley\",\r\n    \"nationality\": \"American\",\r\n    \"image\": \"https://goldenglobes.com/wp-content/uploads/2023/10/margaret-qualley-2020-gg-1.jpg\",\r\n    \"birthday\": \"1994-10-23\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/actors/8","description":"<h3 id=\"description\">Description:</h3>\n<p>Update one actor by id from database.</p>\n<h3 id=\"correct-response\">Correct Response:</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"birthday\": \"1994-10-23\",\n    \"id\": 8,\n    \"first_name\": \"Margaret \",\n    \"last_name\": \"Qualley\",\n    \"nationality\": \"American\",\n    \"image\": \"https://th.bing.com/th/id/OIP.JZJREyv6GxvKRp4BIkm9qwHaJ4?w=178&amp;h=237&amp;c=7&amp;r=0&amp;o=7&amp;pid=1.7&amp;rm=3\",\n    \"createdAt\": \"2025-11-28T01:44:34.240Z\",\n    \"updatedAt\": \"2025-11-28T01:44:34.240Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["actors","8"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"03d3ca7c-5024-4289-8b3a-bcac15b1043e"},{"name":"Delete Actor","id":"ddd0cc30-56cd-4ef2-8a13-3c3512cc5cbb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/actors/34","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Delete an actor into database by id.</p>\n<h3 id=\"correct-response\">Correct Response:</h3>\n<img src=\"https://content.pstmn.io/4111f47a-3d9e-4f62-8d61-9da4ecac7278/aW1hZ2UucG5n\" width=\"934\" height=\"194\" />","urlObject":{"path":["actors","34"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"ddd0cc30-56cd-4ef2-8a13-3c3512cc5cbb"}],"id":"d2bbcfd9-581e-4f52-8270-f9c554f25003","description":"<h2 id=\"📘-actors-api-documentation\">📘 Actors API Documentation</h2>\n<h3 id=\"🧾-overview\">🧾 Overview</h3>\n<p>This collection manages <strong>actor resources</strong> in the Movies App API.<br />It allows you to create, read, update, and delete actors, as well as retrieve detailed information for each one.</p>\n<h3 id=\"🌐-base-url\">🌐 Base URL</h3>\n<p>Código</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://moviesapp-lc0z.onrender.com\n\n</code></pre><h3 id=\"📌-endpoints\">📌 Endpoints</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/api/actors</code></td>\n<td>Get all actors</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/api/actors/:id</code></td>\n<td>Get a single actor by ID</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/actors</code></td>\n<td>Create a new actor</td>\n</tr>\n<tr>\n<td>PUT</td>\n<td><code>/api/actors/:id</code></td>\n<td>Update an existing actor</td>\n</tr>\n<tr>\n<td>DELETE</td>\n<td><code>/api/actors/:id</code></td>\n<td>Delete an actor</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"🧩-request-body-post--put\">🧩 Request Body (POST / PUT)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"first_name\": \"Zendaya\",\n    \"last_name\": \"Stoermer\",\n    \"nationality\": \"American\",  \n    \"image\": \"https://tse1.explicit.bing.net/th/id/OIP.mOvc4m-2yQTNssMhdG6V0AHaLH?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n    \"birthday\": \"1996-09-01\"\n}\n\n</code></pre><ul>\n<li><p><code>first_name</code> (string) – required</p>\n</li>\n<li><p><code>last_name</code> (string) – required</p>\n</li>\n<li><p><code>nationality</code> (string) – required</p>\n</li>\n<li><p><code>image</code> (text) – required</p>\n</li>\n<li><p><code>birthday</code> (dateonly) – required</p>\n</li>\n</ul>\n<h3 id=\"🛡️-authentication\">🛡️ Authentication</h3>\n<p>No authentication required.<br />CORS is currently open to all origins for educational and portfolio purposes. This configuration allows public access from any frontend during development and testing.</p>\n<h3 id=\"🧠-notes\">🧠 Notes</h3>\n<ul>\n<li><p>All responses are in JSON format.</p>\n</li>\n<li><p>Actor IDs are auto-generated.</p>\n</li>\n<li><p>Nationality should be a valid country name or abbreviation.</p>\n</li>\n</ul>\n","_postman_id":"d2bbcfd9-581e-4f52-8270-f9c554f25003"},{"name":"Directors","item":[{"name":"Get All Directors","id":"8068d3fb-a3cb-4063-9567-357dd3fa5122","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/directors","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve all directors from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n     {\n        \"id\": 1,\n        \"first_name\": \"Yorgos\",\n        \"last_name\": \"Lánthimos\",\n        \"nationality\": \"Greek\",\n        \"image\": \"https://cdn.britannica.com/03/254603-050-0EB2CF79/director-yorgos-lanthimos-venice-international-film-festival-venice-italy-2023.jpg\",\n        \"birthday\": \"1973-09-23\",\n        \"createdAt\": \"2025-11-28T01:33:06.370Z\",\n        \"updatedAt\": \"2025-11-28T01:33:06.370Z\",\n        \"movies\": [\n            {\n                \"id\": 1,\n                \"name\": \"Poor Things\",\n                \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\n                \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\n                \"release_year\": 2023,\n                \"createdAt\": \"2025-11-28T01:47:27.050Z\",\n                \"updatedAt\": \"2025-11-29T18:33:28.771Z\",\n                \"directors_movies\": {\n                    \"createdAt\": \"2025-11-28T01:47:27.661Z\",\n                    \"updatedAt\": \"2025-11-28T01:47:27.661Z\",\n                    \"directorId\": 1,\n                    \"movieId\": 1\n                }\n            }\n        ]\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["directors"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"8068d3fb-a3cb-4063-9567-357dd3fa5122"},{"name":"Get One Director","id":"659a3ca0-2766-4dd6-9f7d-8355d5f60b12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/directors/1","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve one director from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 1,\n    \"first_name\": \"Yorgos\",\n    \"last_name\": \"Lánthimos\",\n    \"nationality\": \"Greek\",\n    \"image\": \"https://cdn.britannica.com/03/254603-050-0EB2CF79/director-yorgos-lanthimos-venice-international-film-festival-venice-italy-2023.jpg\",\n    \"birthday\": \"1973-09-23\",\n    \"createdAt\": \"2025-11-28T01:33:06.370Z\",\n    \"updatedAt\": \"2025-11-28T01:33:06.370Z\"\n}\n</code></pre>\n","urlObject":{"path":["directors","1"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"659a3ca0-2766-4dd6-9f7d-8355d5f60b12"},{"name":"Create One Director","id":"6f2adf29-a65e-436e-b06b-ed932421cc71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Christopher\",\r\n    \"last_name\": \"Nolan\",\r\n    \"nationality\": \"American and British\",\r\n    \"image\": \"https://en.wikipedia.org/wiki/Christopher_Nolan#/media/File:ChrisNolanBFI150224_(10_of_12)_(53532289710)_(cropped2).jpg\",\r\n    \"birthday\": \"1970-07-30\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/directors","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Create one director into database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 5,\n    \"first_name\": \"Christopher\",\n    \"last_name\": \"Nolan\",\n    \"nationality\": \"American and British\",\n    \"image\": \"https://en.wikipedia.org/wiki/Christopher_Nolan#/media/File:ChrisNolanBFI150224_(10_of_12)_(53532289710)_(cropped2).jpg\",\n    \"birthday\": \"1970-07-30\",\n    \"updatedAt\": \"2025-11-29T20:48:49.306Z\",\n    \"createdAt\": \"2025-11-29T20:48:49.306Z\"\n}\n</code></pre>\n","urlObject":{"path":["directors"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"6f2adf29-a65e-436e-b06b-ed932421cc71"},{"name":"Update Director","id":"d3c61b4e-b46e-4ef9-a3cd-496524b78449","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"first_name\": \"Christopher\",\r\n    \"last_name\": \"Nolan\",\r\n    \"nationality\": \"American and British\",\r\n    \"image\": \"https://tse4.mm.bing.net/th/id/OIP.Mv26-KSaRBqUENda8GIXwwHaLI?rs=1&pid=ImgDetMain&o=7&rm=3\",\r\n    \"birthday\": \"1970-07-30\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/directors/3","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Update one director from database by id.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 3,\n    \"first_name\": \"Christopher\",\n    \"last_name\": \"Nolan\",\n    \"nationality\": \"American and British\",\n    \"image\": \"https://tse4.mm.bing.net/th/id/OIP.Mv26-KSaRBqUENda8GIXwwHaLI?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n    \"birthday\": \"1970-07-30\",\n    \"createdAt\": \"2025-11-28T02:13:12.294Z\",\n    \"updatedAt\": \"2025-11-29T20:51:04.016Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["directors","3"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"d3c61b4e-b46e-4ef9-a3cd-496524b78449"},{"name":"Delete Director","id":"1a7b27ad-b4fb-49bd-a60d-5b1d20a7c17a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/directors/5","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Delete one director from database by id.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<img src=\"https://content.pstmn.io/4994152b-92cc-450a-a9c7-5baeeaea6d8d/aW1hZ2UucG5n\" alt height=\"156\" width=\"935\" />","urlObject":{"path":["directors","5"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1a7b27ad-b4fb-49bd-a60d-5b1d20a7c17a"}],"id":"0a537363-0da7-47d6-b9b0-f2b314ebb3b8","description":"<h2 id=\"📘-directors-api-documentation\">📘 Directors API Documentation</h2>\n<h3 id=\"🧾-overview\">🧾 Overview</h3>\n<p>This collection manages <strong>director resources</strong> in the Movies App API.<br />It allows you to create, read, update, and delete directors, as well as retrieve detailed information for each one.</p>\n<h3 id=\"🌐-base-url\">🌐 Base URL</h3>\n<p>Código</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://moviesapp-lc0z.onrender.com\n\n</code></pre><h3 id=\"📌-endpoints\">📌 Endpoints</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/api/directors</code></td>\n<td>Get all directors</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/api/directors/:id</code></td>\n<td>Get a single director by ID</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/directors</code></td>\n<td>Create a new director</td>\n</tr>\n<tr>\n<td>PUT</td>\n<td><code>/api/directors/:id</code></td>\n<td>Update an existing director</td>\n</tr>\n<tr>\n<td>DELETE</td>\n<td><code>/api/directors/:id</code></td>\n<td>Delete a director</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"🧩-request-body-post--put\">🧩 Request Body (POST / PUT)</h3>\n<p>json</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"first_name\": \"Christopher\",\n    \"last_name\": \"Nolan\",\n    \"nationality\": \"American and British\",\n    \"image\": \"https://en.wikipedia.org/wiki/Christopher_Nolan#/media/File:ChrisNolanBFI150224_(10_of_12)_(53532289710)_(cropped2).jpg\",\n    \"birthday\": \"1970-07-30\"\n}\n\n</code></pre><ul>\n<li><p><code>first_name</code> (string) – required</p>\n</li>\n<li><p><code>last_name</code> (string) – required</p>\n</li>\n<li><p><code>nationality</code> (string) – required</p>\n</li>\n<li><p><code>image</code> (text) – required</p>\n</li>\n<li><p><code>birthday</code> (dateonly) – required</p>\n</li>\n</ul>\n<h3 id=\"🛡️-authentication\">🛡️ Authentication</h3>\n<p>No authentication required.<br />CORS is currently open to all origins for educational and portfolio purposes. This configuration allows public access from any frontend during development and testing.</p>\n<h3 id=\"🧠-notes\">🧠 Notes</h3>\n<ul>\n<li><p>All responses are in JSON format.</p>\n</li>\n<li><p>Director IDs are auto-generated.</p>\n</li>\n<li><p>Nationality should be a valid country name or abbreviation.</p>\n</li>\n</ul>\n","_postman_id":"0a537363-0da7-47d6-b9b0-f2b314ebb3b8"},{"name":"Genres","item":[{"name":"Get All Genres","id":"073b131d-a06b-450c-a6cb-6528e4102e6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/genres","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve all genres from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n     {\n        \"id\": 1,\n        \"name\": \"Scientific Fantasy\",\n        \"createdAt\": \"2025-11-28T01:30:08.187Z\",\n        \"updatedAt\": \"2025-11-28T01:30:08.187Z\",\n        \"movies\": [\n            {\n                \"id\": 1,\n                \"name\": \"Poor Things\",\n                \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\n                \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\n                \"release_year\": 2023,\n                \"createdAt\": \"2025-11-28T01:47:27.050Z\",\n                \"updatedAt\": \"2025-11-29T18:33:28.771Z\",\n                \"genres_movies\": {\n                    \"createdAt\": \"2025-11-28T01:47:27.358Z\",\n                    \"updatedAt\": \"2025-11-28T01:47:27.358Z\",\n                    \"genreId\": 1,\n                    \"movieId\": 1\n                }\n            }\n        ]\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["genres"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"073b131d-a06b-450c-a6cb-6528e4102e6a"},{"name":"Get One Genre","id":"239308ff-ac65-4049-96cf-9fbc0f87b159","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/genres/4","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve one genre from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 4,\n    \"name\": \"Biographic\",\n    \"createdAt\": \"2025-11-28T01:53:19.339Z\",\n    \"updatedAt\": \"2025-11-28T01:53:19.339Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["genres","4"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"239308ff-ac65-4049-96cf-9fbc0f87b159"},{"name":"Create One Genre","id":"905d0c9e-c384-4b66-af0d-ad29ff1a5ef6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"History\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/genres","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Create one genre into database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 4,\n    \"name\": \"Biographic\",\n    \"createdAt\": \"2025-11-28T01:53:19.339Z\",\n    \"updatedAt\": \"2025-11-28T01:53:19.339Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["genres"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"905d0c9e-c384-4b66-af0d-ad29ff1a5ef6"},{"name":"Update Genre","id":"e66fcd60-4e17-4300-b54f-75eb24b9ec2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Ciencia Ficción\"\r\n}","options":{"raw":{"language":"json"}}},"url":"/genres/4","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Update one genre from database by id.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 4,\n    \"name\": \"Ciencia Ficción\",\n    \"createdAt\": \"2025-11-28T01:53:19.339Z\",\n    \"updatedAt\": \"2025-11-29T21:10:57.892Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["genres","4"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"e66fcd60-4e17-4300-b54f-75eb24b9ec2d"},{"name":"Delete Genre","id":"12b4e0bc-d31a-42b5-8682-9ceb2f4863c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/genres/12","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Delete one genre from database by id.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<img src=\"https://content.pstmn.io/dacf502f-2bac-4f05-b08a-e1dc0f7dcbae/aW1hZ2UucG5n\" alt height=\"140\" width=\"937\" />","urlObject":{"path":["genres","12"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"12b4e0bc-d31a-42b5-8682-9ceb2f4863c0"}],"id":"47d4b1a3-c867-4300-999d-16dec8e62428","description":"<h2 id=\"📘-genres-api-documentation\">📘 Genres API Documentation</h2>\n<h3 id=\"🧾-overview\">🧾 Overview</h3>\n<p>This collection manages <strong>genre resources</strong> in the Movies App API.<br />It allows you to create, read, update, and delete genres, as well as retrieve detailed information for each one.</p>\n<h3 id=\"🌐-base-url\">🌐 Base URL</h3>\n<p>Código</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://moviesapp-lc0z.onrender.com\n\n</code></pre><h3 id=\"📌-endpoints\">📌 Endpoints</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/api/genres</code></td>\n<td>Get all genres</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/api/genres/:id</code></td>\n<td>Get a single genre by ID</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/genres</code></td>\n<td>Create a new genre</td>\n</tr>\n<tr>\n<td>PUT</td>\n<td><code>/api/genres/:id</code></td>\n<td>Update an existing genre</td>\n</tr>\n<tr>\n<td>DELETE</td>\n<td><code>/api/genres/:id</code></td>\n<td>Delete a genre</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"🧩-request-body-post--put\">🧩 Request Body (POST / PUT)</h3>\n<p>json</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n  \"name\": \"Drama\"\n}\n\n</code></pre><ul>\n<li><code>name</code> (string) – required</li>\n</ul>\n<h3 id=\"🛡️-authentication\">🛡️ Authentication</h3>\n<p>No authentication required.<br />CORS is currently open to all origins for educational and portfolio purposes. This configuration allows public access from any frontend during development and testing.  </p>\n<h3 id=\"🧠-notes\">🧠 Notes</h3>\n<ul>\n<li><p>All responses are in JSON format.</p>\n</li>\n<li><p>Genre IDs are auto-generated.</p>\n</li>\n<li><p>Genre names should be unique and descriptive.</p>\n</li>\n</ul>\n","_postman_id":"47d4b1a3-c867-4300-999d-16dec8e62428"},{"name":"Movies","item":[{"name":"Get All Movies","id":"1f9e1134-2906-48a0-9786-96f6c9c6fb95","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/movies","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve all movies from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n     {\n        \"id\": 1,\n        \"name\": \"Poor Things\",\n        \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\n        \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\n        \"release_year\": 2023,\n        \"createdAt\": \"2025-11-28T01:47:27.050Z\",\n        \"updatedAt\": \"2025-11-29T18:33:28.771Z\",\n        \"genres\": [\n            {\n                \"id\": 1,\n                \"name\": \"Scientific Fantasy\",\n                \"createdAt\": \"2025-11-28T01:30:08.187Z\",\n                \"updatedAt\": \"2025-11-28T01:30:08.187Z\",\n                \"genres_movies\": {\n                    \"createdAt\": \"2025-11-28T01:47:27.358Z\",\n                    \"updatedAt\": \"2025-11-28T01:47:27.358Z\",\n                    \"genreId\": 1,\n                    \"movieId\": 1\n                }\n            }\n]\n\n</code></pre>\n","urlObject":{"path":["movies"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"1f9e1134-2906-48a0-9786-96f6c9c6fb95"},{"name":"Get One Movie","id":"efc2ad90-5cd4-4d04-a7a3-45c2ed3a0e5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/movies/1","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Retrieve one movie from database by id.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 1,\n    \"name\": \"Poor Things\",\n    \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\n    \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\n    \"release_year\": 2023,\n    \"createdAt\": \"2025-11-28T01:47:27.050Z\",\n    \"updatedAt\": \"2025-11-29T18:33:28.771Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["movies","1"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"efc2ad90-5cd4-4d04-a7a3-45c2ed3a0e5d"},{"name":"Create One Movie","id":"a7f8ced6-feef-4f31-bb96-b22dedf36f2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Oppenheimer\",\r\n    \"image\": \"https://resizing.flixster.com/5bbfOrn5Stku1HxlkK4ISYi2uQk=/206x305/v2/https://resizing.flixster.com/dV1vfa4w_dB4wzk7A_VzThWUWw8=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzEyZDMyYjZmLThmNzAtNDliNC1hMjFmLTA2ZWY4M2UyMjJhMi5qcGc=\",\r\n    \"synopsis\": \"During World War II, Lt. Gen. Leslie Groves Jr. appoints physicist J. Robert Oppenheimer to work on the top-secret Manhattan Project. Oppenheimer and a team of scientists spend years developing and designing the atomic bomb. Their work comes to fruition on July 16, 1945, as they witness the world's first nuclear explosion, forever changing the course of history.\",\r\n    \"release_year\": 2023\r\n}","options":{"raw":{"language":"json"}}},"url":"/movies","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Create one movie into database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 5,\n    \"name\": \"Oppenheimer\",\n    \"image\": \"https://resizing.flixster.com/5bbfOrn5Stku1HxlkK4ISYi2uQk=/206x305/v2/https://resizing.flixster.com/dV1vfa4w_dB4wzk7A_VzThWUWw8=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzEyZDMyYjZmLThmNzAtNDliNC1hMjFmLTA2ZWY4M2UyMjJhMi5qcGc=\",\n    \"synopsis\": \"During World War II, Lt. Gen. Leslie Groves Jr. appoints physicist J. Robert Oppenheimer to work on the top-secret Manhattan Project. Oppenheimer and a team of scientists spend years developing and designing the atomic bomb. Their work comes to fruition on July 16, 1945, as they witness the world's first nuclear explosion, forever changing the course of history.\",\n    \"release_year\": 2023,\n    \"updatedAt\": \"2025-11-29T21:55:38.576Z\",\n    \"createdAt\": \"2025-11-29T21:55:38.576Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["movies"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"a7f8ced6-feef-4f31-bb96-b22dedf36f2b"},{"name":"Set Genres to Movies","id":"df0d02d0-8c22-4b6a-9ccb-0ce8ea1fac7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[4, 5, 6, 8]","options":{"raw":{"language":"json"}}},"url":"/movies/5/genres","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Add genres by id genres to movie by id movie.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 5,\n        \"name\": \"Suspense\",\n        \"createdAt\": \"2025-11-28T01:53:35.294Z\",\n        \"updatedAt\": \"2025-11-28T01:53:35.294Z\",\n        \"genres_movies\": {\n            \"createdAt\": \"2025-11-29T22:00:58.705Z\",\n            \"updatedAt\": \"2025-11-29T22:00:58.705Z\",\n            \"genreId\": 5,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"id\": 6,\n        \"name\": \"Drama\",\n        \"createdAt\": \"2025-11-28T01:53:48.061Z\",\n        \"updatedAt\": \"2025-11-28T01:53:48.061Z\",\n        \"genres_movies\": {\n            \"createdAt\": \"2025-11-29T22:00:58.705Z\",\n            \"updatedAt\": \"2025-11-29T22:00:58.705Z\",\n            \"genreId\": 6,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"id\": 8,\n        \"name\": \"War Film\",\n        \"createdAt\": \"2025-11-28T02:09:25.312Z\",\n        \"updatedAt\": \"2025-11-28T02:09:25.312Z\",\n        \"genres_movies\": {\n            \"createdAt\": \"2025-11-29T22:00:58.705Z\",\n            \"updatedAt\": \"2025-11-29T22:00:58.705Z\",\n            \"genreId\": 8,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"id\": 4,\n        \"name\": \"Ciencia Ficción\",\n        \"createdAt\": \"2025-11-28T01:53:19.339Z\",\n        \"updatedAt\": \"2025-11-29T21:10:57.892Z\",\n        \"genres_movies\": {\n            \"createdAt\": \"2025-11-29T22:00:58.705Z\",\n            \"updatedAt\": \"2025-11-29T22:00:58.705Z\",\n            \"genreId\": 4,\n            \"movieId\": 5\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["movies","5","genres"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"df0d02d0-8c22-4b6a-9ccb-0ce8ea1fac7e"},{"name":"Set Actors to Movies","id":"7a3d7fed-b13a-4363-9d5c-9b76d06c4f3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[19, 20, 21, 22, 23, 24, 25, 26, 27]","options":{"raw":{"language":"json"}}},"url":"/movies/5/actors","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Add actors by id actors to movie by id movie.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"birthday\": \"1981-06-09\",\n        \"id\": 19,\n        \"first_name\": \"Natalie \",\n        \"last_name\": \"Portman\",\n        \"nationality\": \"Israelí and American\",\n        \"image\": \"https://tse4.mm.bing.net/th/id/OIP.hFgZ7RYUBUrSXboLTS_ZpwHaLH?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:14:49.228Z\",\n        \"updatedAt\": \"2025-11-28T02:14:49.228Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 19,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1966-11-23\",\n        \"id\": 20,\n        \"first_name\": \"Vincent \",\n        \"last_name\": \"Cassel\",\n        \"nationality\": \"French and Brazillian\",\n        \"image\": \"https://tse4.mm.bing.net/th/id/OIP.ERm9H2qf9UAl9YaA-KiK-QHaKP?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:16:25.117Z\",\n        \"updatedAt\": \"2025-11-28T02:16:25.117Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 20,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1983-08-14\",\n        \"id\": 21,\n        \"first_name\": \"Mila \",\n        \"last_name\": \"Kunis\",\n        \"nationality\": \"American\",\n        \"image\": \"https://tse4.mm.bing.net/th/id/OIP.p2OXerFUZ5CZXt6xzEaG3QHaLJ?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:18:01.283Z\",\n        \"updatedAt\": \"2025-11-28T02:18:01.283Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 21,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1948-02-05\",\n        \"id\": 22,\n        \"first_name\": \"Barbara \",\n        \"last_name\": \"Hershey\",\n        \"nationality\": \"American\",\n        \"image\": \"https://image.tmdb.org/t/p/original/6swwfge3HlvyBVRSNwroFtMcgNB.jpg\",\n        \"createdAt\": \"2025-11-28T02:19:09.465Z\",\n        \"updatedAt\": \"2025-11-28T02:19:09.465Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 22,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1971-10-29\",\n        \"id\": 23,\n        \"first_name\": \"Winona \",\n        \"last_name\": \"Ryder\",\n        \"nationality\": \"American\",\n        \"image\": \"https://tse3.mm.bing.net/th/id/OIP.-d1TgpV4z-95P1-is1u7tgHaHa?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:20:23.359Z\",\n        \"updatedAt\": \"2025-11-28T02:20:23.359Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 23,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1995-12-27\",\n        \"id\": 24,\n        \"first_name\": \"Timothée \",\n        \"last_name\": \"Chalamet\",\n        \"nationality\": \"French and American\",\n        \"image\": \"https://tse2.mm.bing.net/th/id/OIP.ZN-wu5trndQMkvatcLTIdQHaJY?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:26:49.500Z\",\n        \"updatedAt\": \"2025-11-28T02:26:49.500Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 24,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1983-10-19\",\n        \"id\": 25,\n        \"first_name\": \"Rebecca \",\n        \"last_name\": \"Ferguson\",\n        \"nationality\": \"Swedish\",\n        \"image\": \"https://tse3.mm.bing.net/th/id/OIP.ouiZxm_lZPfy-inMfvE4DQHaKY?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:28:15.235Z\",\n        \"updatedAt\": \"2025-11-28T02:28:15.235Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 25,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1979-03-09\",\n        \"id\": 26,\n        \"first_name\": \"Oscar Isaac\",\n        \"last_name\": \"Hernández\",\n        \"nationality\": \"Guatemalan\",\n        \"image\": \"https://tse3.mm.bing.net/th/id/OIP.dmLZYfqSjdAc2LHx6o2qFgHaJ4?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:30:43.532Z\",\n        \"updatedAt\": \"2025-11-28T02:30:43.532Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 26,\n            \"movieId\": 5\n        }\n    },\n    {\n        \"birthday\": \"1968-02-12\",\n        \"id\": 27,\n        \"first_name\": \"Josh \",\n        \"last_name\": \"Brolin\",\n        \"nationality\": \"American\",\n        \"image\": \"https://tse4.mm.bing.net/th/id/OIP.z6ZSQo8o15rb4Z-asdAMmgHaKd?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"createdAt\": \"2025-11-28T02:32:02.569Z\",\n        \"updatedAt\": \"2025-11-28T02:32:02.569Z\",\n        \"actors_movies\": {\n            \"createdAt\": \"2025-11-29T22:05:13.640Z\",\n            \"updatedAt\": \"2025-11-29T22:05:13.640Z\",\n            \"actorId\": 27,\n            \"movieId\": 5\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["movies","5","actors"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"7a3d7fed-b13a-4363-9d5c-9b76d06c4f3f"},{"name":"Set Directors To Movies","id":"5bc4c0be-18de-4fa5-bc9f-6b95e0154e98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[2]","options":{"raw":{"language":"json"}}},"url":"/movies/5/directors","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Add directors by id directors to movie by id movie.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 2,\n        \"first_name\": \"Christopher \",\n        \"last_name\": \"Nolan\",\n        \"nationality\": \"British and American\",\n        \"image\": \"https://tse3.mm.bing.net/th/id/OIP.cIz_Ti2Hx4ibDpf83CBR_AHaEs?rs=1&amp;pid=ImgDetMain&amp;o=7&amp;rm=3\",\n        \"birthday\": \"1970-07-30\",\n        \"createdAt\": \"2025-11-28T01:52:28.624Z\",\n        \"updatedAt\": \"2025-11-28T01:52:28.624Z\",\n        \"directors_movies\": {\n            \"createdAt\": \"2025-11-29T22:06:32.831Z\",\n            \"updatedAt\": \"2025-11-29T22:06:32.831Z\",\n            \"directorId\": 2,\n            \"movieId\": 5\n        }\n    }\n]\n\n</code></pre>\n","urlObject":{"path":["movies","5","directors"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"5bc4c0be-18de-4fa5-bc9f-6b95e0154e98"},{"name":"Update Movie","id":"480906b8-6104-401d-954f-4f8d3103a339","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Poor Things\",\r\n    \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\r\n    \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\r\n    \"release_year\": 2023\r\n}","options":{"raw":{"language":"json"}}},"url":"/movies/1","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Update one movie from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": 1,\n    \"name\": \"Poor Things\",\n    \"image\": \"https://resizing.flixster.com/t1AsBaA_GhqQDdLdMOswbCP0zF8=/206x305/v2/https://resizing.flixster.com/U_RT77J5o2EfMC-DdAc7Dm8CkKY=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzNmM2FiYmJhLTFjYTgtNDljOC04MjQ4LTU1Yjg0M2NkNTdmZC5qcGc=\",\n    \"synopsis\": \"From filmmaker Yorgos Lanthimos and producer Emma Stone comes the incredible tale and fantastical evolution of Bella Baxter (Stone), a young woman brought back to life by the brilliant and unorthodox scientist Dr. Godwin Baxter (Willem Dafoe). Under Baxter's protection, Bella is eager to learn. Hungry for the worldliness she is lacking, Bella runs off with Duncan Wedderburn (Mark Ruffalo), a slick and debauched lawyer, on a whirlwind adventure across the continents. Free from the prejudices of her times, Bella grows steadfast in her purpose to stand for equality and liberation.\",\n    \"release_year\": 2023,\n    \"createdAt\": \"2025-11-28T01:47:27.050Z\",\n    \"updatedAt\": \"2025-11-29T22:09:09.765Z\"\n}\n\n</code></pre>\n","urlObject":{"path":["movies","1"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"480906b8-6104-401d-954f-4f8d3103a339"},{"name":"Delete Movie","id":"cb183ecb-0c38-44b9-a632-84a47527a346","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"/movies/5","description":"<h3 id=\"description\"><strong>Description:</strong></h3>\n<p>Delete one movie from database.</p>\n<h3 id=\"correct-response\"><strong>Correct Response:</strong></h3>\n<img src=\"https://content.pstmn.io/63605c75-6528-4cad-9bca-2bac8bf85881/aW1hZ2UucG5n\" alt height=\"149\" width=\"930\" />","urlObject":{"path":["movies","5"],"host":[""],"query":[],"variable":[]}},"response":[],"_postman_id":"cb183ecb-0c38-44b9-a632-84a47527a346"}],"id":"53616326-837f-4b81-9564-6a3c04f26ea3","description":"<h2 id=\"📘-movies-api-documentation\">📘 Movies API Documentation</h2>\n<h3 id=\"🧾-overview\">🧾 Overview</h3>\n<p>This collection manages <strong>movie resources</strong> in the Movies App API.<br />It allows you to create, read, update, and delete movies, as well as retrieve detailed information including actors, directors, and genres associated with each movie.</p>\n<h3 id=\"🌐-base-url\">🌐 Base URL</h3>\n<p>Código</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://moviesapp-lc0z.onrender.com\n\n</code></pre><h3 id=\"📌-endpoints\">📌 Endpoints</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Method</th>\n<th>Endpoint</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>GET</td>\n<td><code>/api/movies</code></td>\n<td>Get all movies</td>\n</tr>\n<tr>\n<td>GET</td>\n<td><code>/api/movies/:id</code></td>\n<td>Get a single movie by ID</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/movies</code></td>\n<td>Create a new movie</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/movies/:id/genres</code></td>\n<td>Set genres to a movie</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/movies/:id/actors</code></td>\n<td>Set actors to a movie</td>\n</tr>\n<tr>\n<td>POST</td>\n<td><code>/api/movies/:id/directors</code></td>\n<td>Set directors to a movie</td>\n</tr>\n<tr>\n<td>PUT</td>\n<td><code>/api/movies/:id</code></td>\n<td>Update an existing movie</td>\n</tr>\n<tr>\n<td>DELETE</td>\n<td><code>/api/movies/:id</code></td>\n<td>Delete a movie</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"🧩-request-body-post--put\">🧩 Request Body (POST / PUT)</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"name\": \"Oppenheimer\",\n    \"image\": \"https://resizing.flixster.com/5bbfOrn5Stku1HxlkK4ISYi2uQk=/206x305/v2/https://resizing.flixster.com/dV1vfa4w_dB4wzk7A_VzThWUWw8=/ems.cHJkLWVtcy1hc3NldHMvbW92aWVzLzEyZDMyYjZmLThmNzAtNDliNC1hMjFmLTA2ZWY4M2UyMjJhMi5qcGc=\",\n    \"synopsis\": \"During World War II, Lt. Gen. Leslie Groves Jr. appoints physicist J. Robert Oppenheimer to work on the top-secret Manhattan Project. Oppenheimer and a team of scientists spend years developing and designing the atomic bomb. Their work comes to fruition on July 16, 1945, as they witness the world's first nuclear explosion, forever changing the course of history.\",\n    \"release_year\": 2023\n}\n\n</code></pre><ul>\n<li><p><code>name</code> (string) – required</p>\n</li>\n<li><p><code>image</code> (text) – required</p>\n</li>\n<li><p><code>synopsis</code> (text) – optional but recommended</p>\n</li>\n<li><p><code>release_year</code> (dateonly) – required</p>\n</li>\n</ul>\n<h3 id=\"🛡️-authentication\">🛡️ Authentication</h3>\n<p>No authentication required.<br />CORS is currently open to all origins for educational and portfolio purposes. This configuration allows public access from any frontend during development and testing.</p>\n<h3 id=\"🧠-notes\">🧠 Notes</h3>\n<ul>\n<li><p>All responses are in JSON format.</p>\n</li>\n<li><p>Movie IDs are auto-generated.</p>\n</li>\n<li><p>Each movie must be linked to a valid director and genre.</p>\n</li>\n<li><p>Actors can be associated via their IDs in the <code>actors</code> array.</p>\n</li>\n<li><p>The <code>POST</code> endpoints with <code>/genres</code>, <code>/actors</code>, y <code>/directors</code> allows existing entities to be associated with a movie.</p>\n</li>\n</ul>\n","_postman_id":"53616326-837f-4b81-9564-6a3c04f26ea3"}],"event":[{"listen":"prerequest","script":{"id":"86b7a555-6f20-4259-8b45-0d8253c8961c","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"d081ad26-6e85-4710-bcd6-1015999f4833","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"BASE_URL","value":""}]}