Skip to content
Advertisement

Tag: rest

Best Practice of calling an API endpoint [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 12 months ago. Improve this question What is the best practice of returning when calling an API endpoint? Is it best to return the whole response? Let’s

Handling Mongoose Query Errors in Express.js

So let’s say I want to make a Mongoose query to a database, inside of an Express post route: My concern is the handleError function. I’m not quite sure what kind of errors could even happen in Mongoose since it’s just a simple query, but what should be included in the handleError function? And what response should I send to

AWS S3 REST API “RequestTimeTooSkewed” Error

I am attempting to initiate a multipart upload to an s3 bucket directly from the browser by following the corresponding AWS Docs. However, I’m receiving the following response error: Am I mistaken or are these times in fact within the 9000 millisecond skew cap in which AWS deems a request time valid? After console logging the times for better analysis

Separating Django REST back from Front end

This is a bit of a different question. I’ve tried researching the information for a few hours now and I can’t seem to find what I am looking for. I have a Django REST backend that I set up. Its very simple REST API that has one Model Model.py I’m able to post to via the REST api interface see

Advertisement