Questions tagged [restful-url]

REST is a groundbreaking software architecture approach designed to facilitate communication in distributed hypermedia systems, including the vast expanse of the World Wide Web.

Steps to automatically return JSON in a Visual Studio web API1. Open your Visual Studio

After setting up a Web API project in Visual Studio 2013, I noticed that when I visit a sample restful URL in my browser, such as http://localhost/values/5, it returns XML. Is there a way to configure it so that it defaults to returning JSON instead of X ...

Pass a single parameter to the REST API and utilize it in the request

I typically utilize the MEAN stack when developing applications. Currently, I am working on creating a restful API to retrieve users based on their first name or last name. My question is, should I create one get function that can handle both first name ...

Analyze the JSON feedback

In Java, I am attempting to parse the following JSON response and retrieve the "message" and "WORKORDERID" data. { "operation": { "result": { "message": " successfully.", "status": "Success" }, "Details" ...

After running the Grunt build, the Angular call to PHP results in a 404

I'm really in need of some guidance here, as I'm quite lost building my first ng-app. The issue lies with the Grunt build results where the api calls (php) are not being found. My folder structure consists of dist->api->index.php, so it's puzzling to me w ...

Update Android: Sending data to server using PUT request

Feeling a bit frustrated here. Encountering an issue with sending all user inputs via a PUT REST request to the server. Here's how the request JSON object appears on the server: { id: "123", text: "My Name is Peter...", age": 15, name: "Pe ...

Passing data between pages in Node.js/Express without disrupting the flow of RESTful routing

Within my Express app, the initial landing page prompts visitors to input their email address and then choose between "Sign Up" or "Log In", depending on whether they have an existing account. Following this input, users are directed to either "/signup" o ...

Matching the date format from Express/MongoDB req.params to the date format in a MongoDB document

I am currently working with a MongoDB collection called SlopeDay which contains dates. https://i.stack.imgur.com/xw5bb.png In my express routing, I am trying to reformat the date to MM-DD-YYYY in order to use it for the URL. This URL will be used to retr ...

What is the process for adding parameters to a Fetch GET request?

I have developed a basic Flask jsonify function that returns a JSON Object, although I am not certain if it qualifies as an API. @app.route('/searchData/<int:id>',methods=["GET"]) def searchData(id): return jsonify(searchData(id)) Curr ...

I've been encountering an issue with the WebClient.DownLoadString function where it inserts """ in front of each element of my JSON data. Is there a way to properly parse the

In my MVC application, I am facing an issue while trying to access a REST Service. I am using the getJSON method to retrieve data from a controller, which internally calls the REST service and returns data in JSON format. However, when executing the Downlo ...