Create a Serverless API with Postman and MongoDB Realm
summary
Creates a serverless API on MongoDB Realm linked to the sample_inflix movies collection, deploys an HTTP webhook and writes a function that returns a movies list or a single document by _id; tests and debugs with Postman, fixes a database-name typo that initially returned an empty array, and adds a 15-record limit to speed responses. Uses MongoDB Atlas free tier and MongoDB Realm HTTP service, supports query by year/title and requires ObjectId conversion for single-document lookups.
AI-written summary · about
chapters (11)
- 0:00Introduction to serverless API
- 1:47Setting up MongoDB Atlas
- 3:10Creating Realm application
- 4:35Writing the webhook function
- 8:10Testing API in Postman
- 9:55Limiting API results
- 10:39Querying by year
- 11:46Searching by movie title
- 12:31Adding single movie endpoint
- 14:23Testing single movie endpoint
- 15:05Q&A session
