Click here to Skip to main content
15,891,529 members
Everything / REST

REST

REST

Great Reads

by Evoluteur
Generic REST or GraphQL endpoints for CRUD and more, written in JavaScript, using Node.js, Express, and PostgreSQL
by lusgon
Uploading a file using WCF REST API and JavaScript
by Vincent Maverick Durano
This article will talk about how to implement a custom wrapper for your ASP.NET Core and Web API applications for managing exceptions, providing meaningful and consistent responses to consumers.
by Michael Chourdakis
Quicky generate text and images

Latest Articles

by honey the codewitch
Generate a web browsable interface to your archived TV show content
by Pete O'Hanlon
Easy way to test HttpClient with Goldlight.HttpClientTestSupport
by Peng Qiu
In this article, we will talk about what web security related configuration parameters help protect the transfer data in the REST API and how to configure them.
by Michael Chourdakis
Quicky generate text and images

All Articles

Sort by Title

REST 

2 Jul 2013 by Sebastian T Xavier
Hi all,I have a web setup project of my REST Web Service which is working correctly in 32 bit OS. I have a prerequisite of .net framework 4.0 & a launch condition for IIS. When I try to install this in a Windows Server 2012(With IIS8 is setup), an exception is thrown.Installation is...
21 Jan 2011 by sowmyanarayanan
Introduces you to the basics of RESTful Web Services.
20 Sep 2019 by Member 13975267
Hi All, I am new to .NET Core. I am working on a new project where we will have REST APIs that should be used by thousands of users at the same time. The REST APIs will use Entity Framework to update and return data from a SQL server database. We use Unit tests and logging(log4net) extensively....
6 Sep 2018 by Richard MacCutchan
1. Impossible to guess as it depends on so many variables. 2. dot net core support unit testing and logging - Google Search[^]. 3. You need to be more specific.
6 Sep 2018 by Vincent Maverick Durano
Quote: I found that dot net core does not have all the dot net framework APIs. True but the latest version of .NET Core should include the core features and APIs you need to get you started and build the app. Keep in mind that the .NET Core framework is designed to be cross-platform, so you...
7 Aug 2017 by Bart-Jan Brouwer
Modern design example for .NET Core MVC with RESTful service
25 May 2012 by CodingBruce
Self-installing version tracking REST service for builds
5 Jan 2014 by Roy, Philippe
Cloud computing means opportunities as well as challenges. Here's an overview of cloud computing intersecting with the IVR world.
27 May 2020 by Maciej Los
Not enough description of issue to post short answer. Refer this: How to Fix the 400 Bad Request Error[^]
3 Jul 2019 by rtybase
401 and/or 403 and a short story of secure RESTful
3 Dec 2013 by Member 9904848
I am trying to consume a REST service from another company. When I use the link in the browser it works fine. However I get the 401 error when accessing from code. What am I doing wrong? Do I need to add something to the web.config of the web app?string URL =...
4 Dec 2013 by Member 9904848
Figured it out. The REST Service is returning a response code of 401 if the session is not valid. So I am catching that exception and handling it. Thanks.
18 Sep 2014 by Anele Ngqandu
HiHaving issues i cant seem to hit my controller, please helpWeb.xml below.
23 Sep 2014 by Suraj Sahoo | Coding Passion
For 500 Internal server error, you ought to debug and check for the Issue on the server side code. Please debug putting the code block in try catch and then check for exception.ThanksPlease reply after debug. :)
14 Sep 2012 by cutie1
HiiIn implementing the REST service when I run the URL then I get the following error.."[Fiddler] ReadResponse() failed: The server did not return a response for this request."I want to return the response in JSON format ?However when I check for returning the response in XML format then its...
14 Sep 2012 by RaisKazi
Based on my answer to your previous question, I take you are developing WCF REST service. Have you defined properties of WebInvoke attribute as below. Change Method type to POST if you are using POST method.[WebInvoke(Method = "GET",RequestFormat = WebMessageFormat.Json,ResponseFormat =...
23 Apr 2013 by ponnapuhanu
I am getting fiddler 504 error when am calling wcf rest service using fiddler. But it is working fine when i change the response format to xml.anybody resolve the problem.The source code given below.[OperationContract][WebInvoke( ...
14 Feb 2014 by Sergey Alexandrovich Kryukov
Sorry, this is not a question. And this is not the sample-finding service, sorry. Do the Web search. In case of some doubt, please ask a specific question.—SA
19 Dec 2013 by Rahul Rajat Singh
A discussion about backbone.js and marionette.js frameworks and how we can use them to create single page JavaScript applications
4 Apr 2013 by Rahul Rajat Singh
In this article we will see how we can use WCF data services to create ODATA complaint RESTful services.
19 Sep 2020 by Don Kackman
An easy to use Rest client using the Dynamic Language Runtime
30 May 2012 by Murray Brooks Davis
How to make a simple, end-to-end, mobile, Java enterprise application including a RESTful web service and an Android client.
16 Jun 2022 by honey the codewitch
Create a clock that uses multiple Internet services to detect your weather, date and time
29 Nov 2017 by Member 13048222
This code, is working perfectly (getting data with web request) : Dim request As HttpWebRequest = DirectCast(WebRequest.Create(resource_url), HttpWebRequest) request.Headers.Add("Authorization", authHeader) request.Method = "GET" request.ContentType = "application/json" ...
2 Feb 2013 by Darith1974
Can anyone inform of a link, video or tutorial which shows how to connect a entity framework database(Database first) to a wcf rest application in visual studio? What i have found so far is not very useful?
2 Feb 2013 by Joezer BH
Hi Darith, See Implementing a WCF Service with Entity Framework[^]Cheers, Edo
2 Feb 2013 by Krunal Rohit
http://blogs.msdn.com/b/writin...
12 Jun 2014 by Member 10419043
I am Trying this code..but it is not properly executing..Please Help me.. #include #include #include #include #include ...
6 Jul 2014 by BacchusBeale
Your sample function is waiting for input from the command line.But you are trying to service a web-request. This sample function will never return because no one is at command line to press Enter.
19 Feb 2014 by DipsMak
Hi All,I am create REStFul service using ADO.Net Entity data model, my problem is when i am creating model contents, it doesen't bring up with all the tables i have in database,,,what may be the issues, please help..RegardsdipsMak
12 Sep 2012 by cutie1
Hi,,I have to create REST services and insert a new record in the database ..I want to know is ADO.NET Entity Data Model(edmx) file useful to create a new record in REST services?Thanks,,
12 Sep 2012 by Sahil Mahajan Mj
Try this link,http://stackoverflow.com/questions/7013776/insert-a-new-record-in-my-db-using-odata[^]
12 Sep 2012 by RaisKazi
Firstly make sure, does WCF REST service really required for inserting a new record in your application architecture. Below are some good references to start with WCF REST...
13 Mar 2017 by ujjwal uniyal
i am calling an api on click of a button. the issue is that the code works as expected in crome while it doesn't in firefox. I checked that there is no error in console in firfox.Intresting thing is that if i have firefox develper tool opened in the browser then the request is hitting the...
25 Feb 2013 by Karthick88it
Hi everyone I am trying to call the Rest services using Ajax Call with Method = Post; My Ajax code is below. In my alert i am getting my results added. But in the Html form i was not able to add this using AJAX. $.ajax({ type: "POST", //GET or POST or PUT or DELETE...
25 Feb 2013 by Jameel VM
try like thisfunction GetSearchResult() { $("#loading").show(); $.support.cors = true; var searchUrl = URL; var params = { "ID": Id, "Name": name }; $.ajax({ cache: false, type: "POST", async: true, dataType:...
17 Aug 2014 by Ameer Vikram
I have Created a WCF service with POST Method. I want to call that function from ASP.NET / PhoneGap using Ajax. But I can't. It shows error.
18 Aug 2014 by Snesh Prajapati
I hope that following article will be helpful. Download the code from Part 2 of below article series and compare with your AJAX call code where service is being consumed...Part 1: WCF RESTful service and WebGrid in ASP.NET MVC 5 - Part 1[^]Part 2: WCF RESTful service and WebGrid in...
17 Jul 2017 by shefeekcm
After executing my rest api I am getting call back to error with a textstatus 'parsererror'.(Sometimes only it shows parsererror) I am using an iframe in window and imitate the ajax request from there.(IE shows the parser error but chrome works fine). please see my below request. return...
20 Aug 2020 by swatishri
Hi, I have a perfectly working code for auto populate textbox via rest api(it populates after 2 characters typed). Can you assist me on modifying the same api code to find out the total length of array(/total companies) and assign to textbox val...
4 May 2015 by Mariusz Klimek
This is an aerial view of my REST API
15 May 2012 by RichardGrimmer
Guys,Bit of an odd one here.I have a RESTful WCF service which I'm calling from Javascript. Since the service is hosted in a different domain to the web app, I've run into the CORS problem, but resolved this by adding the appropriate headers to the Response in IIS. This seems to be all...
11 Oct 2012 by Guido - the one and only -
I'm having the same issue (no solution found yet). Did you ever find a fix for this?
12 Aug 2015 by Rahul Ramakrishnan
i need to populate a list view with json data and also give a pagination feature to that screen. the listView should show 5 datas at a time and on clicking the pagination button the listview should show the next 5 datas.here is the code that i have used try { ...
12 Aug 2015 by Richard MacCutchan
I'm not sure I follow the logic of your code, but in the first part you have:for (int i = 0; i
16 Jun 2018 by Member 13875491
I have made a login api which will return an id when i pass username and password in android app. public class LoginApiBody { public string UserName { get; set; } public string Password { get; set; } } Say the link is http://abcd.org/efg/login. Currently the link is showing: { ...
8 Jun 2016 by BHANU PRAKASH BYSANI
I am facing an issue when inserting records in to multiple lists using rest api with http calls in SharePoint 2013.I have written common method mentioned below which will take input params as data and url. var postRequest = function (data, url) { var deferred =...
28 Aug 2015 by Bert O Neill
AngularJS and Web API Active Directory Security (Authorisation)
15 Mar 2018 by charles922
AngularJS and REST API Tutorial
19 Apr 2018 by charles922
AngularJS and REST API Tutorial - Part 2
27 Apr 2018 by charles922
AngularJS and REST API Tutorial: Part 3
12 Jul 2018 by charles922
AngularJS and REST API Tutorial - Part 4
6 Mar 2015 by mengwangk
Develop an AngularJS application to view photos stored in Android phone.
15 May 2019 by Han Bo Sun
In this tutorial, I am going to discuss how ngResource works. I will demo all 4 HTTP verbs (or methods), and multiple ways request input data can be packaged. It will be a very fun tutorial.
12 Apr 2012 by Leng Vang
I'm wondering if anyone would still interested in create Android app interact with .NET WCF REST Service under OData4j using JSON format. Also some handling on Android's basic listview and dialog boxes. I just went through created an application using these technology and its not easy figuring...
15 Sep 2013 by satyapratap
i have a wcf rest which is recieving an image from andriod device and save into public shared folder.everything is working well but while saving the image file(actual image size is 15kb) into my shared folder it is saving with 489kb.Any image file is saving with 489kb only. I found the...
16 Sep 2013 by satyapratap
here i have solved my self[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "UploadImage")]public string RecieveImage(Stream ImageStream)FileStream fileToupload = new...
13 Jul 2023 by Golden Basim
Hi, I developed a Windows form application using C# & MySQL, also I know about REST API in Node.js (express) and Laravel. I know it is different languages and may be different techniques. but, I want to add this feature to my C# Windows form...
13 Jul 2023 by Andre Oosthuizen
It is going to be difficult to find an all-in-one solution online for your requirements. You need to first draw up your mind-map requirements, break them down into little objects then start with creating each object accordingly. There are many...
2 Sep 2014 by Pavel Sinkevich
Implement TinyWebDb interface on WCF Service to communicate with Android application developed with App Inventor
5 Sep 2014 by Terrence Sheflin
BackgroundI have an MVC Application with a WebAPI component. I'm using jQuery and AJAX to pass and receive data from the WebAPI. I rely on the Application_BeginRequest being fired during each call to perform some mundane task.ProblemApplication_BeginRequest always fires for GET and...
29 Sep 2016 by Roshan Parmar
This article shows how to view the workflow status with Rest API, how to navigate to workflow approval page, how to approve and reject the task with SharePoint REST API
16 Nov 2018 by Vincent Maverick Durano
A quick tutorial on how to integrate VMD.RESTApiResponseWrapper.Core library into your ASP.NET Core 2.1 REST API application
4 Jun 2020 by Vincent Maverick Durano
This article will talk about how to implement a custom wrapper for your ASP.NET Core and Web API applications for managing exceptions, providing meaningful and consistent responses to consumers.
18 Oct 2019 by Vincent Maverick Durano
Highlights the detail about what's new in AutoWrapper Version 2. AutoWrapper is a simple, yet customizable global exception handler and response wrapper for ASP.NET Core APIs
25 Nov 2016 by kannankeril
This article is an attempt at splitting out the controller layer to reduce its complexity and improve quality and maintainability of the resulting code.
7 Apr 2012 by aamir sajjad
Please provide your feedback on my solution against following requirements.Requirement (similar to):1.a let say that authentication Token is made out of the Email and date and is encrypted1.b authentication Token is send back to the client through header1.c authentication Token...
27 May 2012 by aamir sajjad
How to implement the custom authorization and exception handling attribute in the ASP.NET Web API.
16 Jul 2013 by Aleksandar.S
Hello everyone,I'm trying to make an IP camera proxy/relay. To clear what that is, a camera can hold up only up to 15 connections. Since this should be used with a larger number of users, my idea is to make a REST web service with Web API and serve an MJPEG stream to every user. The source...
13 Dec 2012 by Mats Samuelsson
AT&T hosted an M2M Challenge at the 2013 AT&T Developer Summit.
4 Oct 2019 by Vincent Maverick Durano
In this post, we will take a look at how we can beautify our ASP.NET Core API responses using AutoWrapper.
16 Jun 2017 by komakommander
Hi everyone,i am banging my head on the following task:I have an AzureFunction that uses a ServiceBus-Trigger like so:{ "bindings": [ { "name": "myQueueItem", "type": "serviceBusTrigger", "direction": "in", "connection": "MyConnection", ...
16 Jun 2017 by Gurdeep
Your problem clearly lies in the difference between these lines: var content = Encoding.UTF8.GetBytes("Some string"); ByteArrayContent postContent = new ByteArrayContent(Encoding.UTF8.GetBytes(message)); Why use the ByteArrayContent?
20 Apr 2015 by zhshqzyc
I use RestSharp to test my service.[OperationContract] [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "/GenerateMetadata/{FacilityID}")] public List...
20 Apr 2015 by Richard C Bishop
var endpoint = String.Format("http://localhost/blahblah.svc/GenerateMetadata/?FacilityID={0}", "555");
23 Apr 2015 by zhshqzyc
If this parameter is set, its value will be sent as the body of the request. Only one RequestBody Parameter is accepted – the first one.The name of the parameter will be used as the Content-Type header for the request.RequestBody does not work on GET or HEAD Requests, as they do not...
4 Mar 2020 by Łukasz Bownik
The article tries to map a deeper, more generic nature of REST architectural style into HTTP to show protocol deficiencies.
18 Jan 2017 by Sujoy Basu
Here are few things to keep in mind when creating your analytics using Predix Analytics Services, starting with prepping the data itself through deploying the analytic in a production environment.
22 Sep 2015 by Member 11318373
I have a service API using ASP.NET MVC 4 and Web API and I need to handle shipping stored in a database images.My intention was to manage lists, ie put all the images, you can return me a query, a list of type string, for this I make the array of bytes to get from the query image and...
22 Sep 2015 by Afzaal Ahmad Zeeshan
Depends on your server's hardware, it wouldn't collapse. It is not a wormhole, but a machine. It will simply get slow, think of it like having a water pipe with capacity to allow 5 litres of water and you try to get 20 litres of it? Will it collapse? No, it will provide you with 20 litres of...
16 Sep 2020 by Jeremy D Richardson
Have a problem that I feel like must have been solved in some elegant ways but wanting some input. I'm using vanilla Javascript to solve this but wondering if perhaps there is a more elegant React solution or some other library. Problem: Have an...
16 Sep 2020 by Chris Copeland
I'm not particularly au fait when it comes to modern JS and the classes available to it, but if you're concerned about asynchronous web requests refreshing the token at the same time, you'd have to look into something like a Mutex. For the flow...
12 May 2016 by Christian Vorhemus
In this article, we create a data visualization tool similar to Gapminder based on demographic data derived from a REST API
3 Jul 2020 by Rajesh Pillai
An overview of building REST API using Deno and Oak
16 Sep 2013 by pkmonga
I have to convert PHP project having Rest ful webservices with 2 legged OAuth Implementation and i have to convert it into .Net Project.i am not able to find the Suitable OAUTH in .net with parameters given to me.Parameters given only are Consumer Key, Consumer Secret Key and URL to hit.Based...
1 Feb 2012 by Omar Al Zabir
How to build truly RESTful API and website using the same ASP.NET MVC code
26 Aug 2019 by robertcarlson8203
Learn how to quickly build mobile apps using a Xamarin with a cloud hosted mobile backend in minutes.
19 Oct 2016 by Atish Dipongkor
Writing CAML queries in a optimized, efficient and easiest way.
13 May 2016 by mou7866
I have been building mvc apps for the last two years and most of the time I have one class library as a BLL, one DAL and DTO. However now I want to build different modules and have each module consumed as a RESTful service on the frontend. At the same time, I want to have a common library where...
13 May 2016 by Sergey Alexandrovich Kryukov
Please see my comments to the question. I cannot see any special problems there except possible problems specific to your application, which you did not share with us. You can start here: A Guide to Designing and Building RESTful Web Services with WCF 3.5[^].—SA
3 Nov 2014 by Mike Stowe
Using Spec Driven Development and tools like RAML, Swagger, or API Blueprint you can be sure to build an API that your users will love while also saving time, energy, and money down the road.
17 Jun 2014 by Terrence Sheflin
I’ve had to build several enterprise size applications over the years, and one of the biggest mistakes I ever made was to re-use the business objects as my data contracts.
21 Sep 2018 by Pradeep Kumar
Hi all i have been trying to post files for a third party tool through rest api with MultipartFormDataContent. Even though i am writing files to MultipartFordatacontent in byte arry i am receiving error saying "400 bad request no filedata section found in multipart post request". Request: ...
19 May 2016 by HobbyProggy
Hey fellow Cpians,i have a problem with a connection to a Server with the REST.API. The code posted below is EXAMPLECODE.As soon as i reach the point of client.DownloadData(...) it fails the Handshake producing the error "The connection was closed. Unexpected error while...
19 May 2016 by Sacha Barber
have a look here I show loads of different ways to use .NET to do REST calls, there is another way shown in the comments:JSON API[^]
11 Aug 2019 by Gerry Schmitz
Quote: Please suggest me. Thanks in advance. How about the Blue Plate Special?
11 Aug 2019 by Ravi Bhavnani
See the accepted answer on this SO page[^]. /ravi
4 Nov 2015 by Member 12098014
Background: My experience has been writing "standard" windows services as well as standalone applications. I have also done quite a bit of ASP.NET.I am in need to write a RESTful web service that acts as a middle man between clients and back end managers. The client sends a login...
28 Oct 2014 by Hein_vdw
I have created a rest service and it is working perfectly with my get operation, but i am trying to implement a POST, but when the xml data reaches the service it looks like this (missing half the objects and priority changes to 0 instead of 8888) :