Hey,I'm building a small test express API for a property/real estate advert website. From when I designed API's in college, I feel like I remember there being 7 endooints for a REST API. I can only think of 5. What am I missing from the list (if any).router.get('/properties', catchErrors(propertyController.getProperties)); router.get('/property/:id', catchErrors(propertyController.getProperty)); router.post('/property', catchErrors(propertyController.createProperty)); router.put('/property/:id', catchErrors(propertyController.updateProperty)); router.delete('/property/:id', catchErrors(propertyController.deleteProperty)); I feel like I'm missing something here
Submitted May 24, 2020 at 12:38PM by Deviso
No comments:
Post a Comment