How to create HTTP GET request that queries a database (containing list of JSONs) and retrieves the appropriate JSON that satisfies the query?
问题 I am working on an Angular project which involves submitting data (as a JSON) to the server using the HTTP POST/PUT request. The database is a list of JSONs which gets appended with a new, single JSON each time the POST/PUT request sends a new JSON to it. In each PUT/POST request, the JSON template looks like this: { "prop1": "123456", "prop2": "abc", "prop3": "xyz" } Let's call the above JSON to be of class Hero which has the same fields/properties. The list of JSONs in the database looks