Most voted "asp.net-web-api" questions
ASP.NET Web API is a framework for building HTTP services for clients such as browsers and mobile devices. It is based on Microsoft. NET Framework and ideal choice for Restful services.
Learn more…455 questions
Sort by count of
-
25
votes1
answer350
viewsOpenssl and ASP.NET Webapi
I am developing an internal application, but in a certain module I will need to travel a certain sensitive data. A priori I thought about using SSL, but due to limitations (non-technical) I won’t be…
javascript c# asp.net-web-api openssl code-reviewasked 8 years, 5 months ago Tobias Mesquita 22,900 -
22
votes3
answers7874
viewsASP.NET MVC or Webapi?
What is the advantage of using MVC and Webapi (using Visual Studio and C#)? I think that developing in MVC is easier to assemble a form with validations, because just put special attributes for this…
-
21
votes2
answers1634
viewsWhat is ASP.NET vNext? What is the correct name?
Okay, I know that ASP.NET vNext is the new version of ASP.NET being released by Microsoft in 2015 and that brings big changes changing the way of working various things. This vNext name was used as…
asp.net-mvc asp.net asp.net-web-api asp.net-core nomenclatureasked 9 years, 8 months ago Maniero 444,682 -
16
votes1
answer4985
viewsWhat is it and what is Odata for?
I’ve been getting a few people talking about OData, I did some research I saw some codes, but I didn’t understand some things, among them: What good is Odata? What are the advantages and…
-
11
votes1
answer219
viewsHow was the relationship between Web Api and Asp.NET MVC in Asp.NET 5?
Us ASP.NET 4.6 or less there were differences between Web Api and Asp.Net MVC. O controller, may inherit from controller or of ApiController. However, with the arrival of the Asp.Net 5 will not have…
-
11
votes3
answers1063
viewsWhat is the difference between System.Web.Http and System.Web.Mvc?
I have an MVC project and in it I will have normal controls and controls providing services via webservices (Controller and ApiController). And I don’t know which one to use because I don’t know…
-
10
votes2
answers2720
viewsView control via authorization with Angularjs + Webapi
I am working on an application built with Angularjs and ASP.NET Web API. For now, using ASP.NET Identity I have already been able to implement authentication and authorization in the API using Oauth…
-
10
votes1
answer2093
viewsOWIN and Oauth What are they and how to use them?
I am seeing Webapi tutorials with authentication/ authorization and I came across these two concepts, although explained in the tutorials the settings are not clear. Even searching the web, the…
-
10
votes0
answers987
viewsOauth 2 authentication server in ASP.NET Web API
The company I work with develops internal applications, but for policy reasons, we will have a subdomain to handle authentications such as: login.dominio.com.br where you will have an app…
-
9
votes4
answers1270
viewsHow to notify Web Api user with Signalr?
Upon receiving a post in an application Web Api need to notify a particular customer that a new record has been entered. This user will see this notification in a client application(javascript)…
-
9
votes2
answers2136
viewsWeb API x Webservices
Web API was created to better replace a Webservice? If not, what is the exact difference between the two and when to use one or the other?
-
9
votes1
answer767
viewsMulti-client Web API Structure
I’m in the following situation: I have a web application that accesses the data through a C#Webapi. I need to apply the concept of multitenancy in order to allow my application to be accessed by…
-
8
votes1
answer1309
viewsWork with Angularjs in master page Asp.net
I’m involved with the Angularjs these days, so in this learning phase, I came up with a question. How I work with Angularjs on Asp.net pages that have a master page? For example, I realized that the…
-
8
votes2
answers1098
viewsAngular POST with custom header and CORS
I need to perform a POST request using angular (http.post) and I need to pass to my API (.NET) in my header the access credentials (I’m using basic Authentication). Authorization:Basic…
-
8
votes3
answers852
viewsWeb Security api: SSL?
I wonder if you have how to restrict requests to a web api specifically for a machine. My web api will be hosted on computer A. My client (at first only one) will stay on the computer B. Different…
-
8
votes1
answer157
viewsHow to use Fluentvalidation ruleset functionality in Web API?
I would like to use a feature of Fluentvalidation calling for ruleset in a web API project, because I don’t want to have to be doing model validation manually every time a action method is called.…
-
8
votes1
answer356
viewsWeb API and Owin Oauth - redirect to another domain (redirect_uri)
Good afternoon, I’m having a problem implementing external login on a project I’m working on. ASP.NET Web API + Owin + Oauth. Ambience: Work with two Server1 and Server2 servers. Server1: Server…
-
7
votes1
answer2836
viewsDifferences about WCF, Webservice and Webapi with Asp.net?
I will create a service to make my company’s data available to a client. But I am evaluating the creation of the services and I came across this technical doubt. I know there are differences between…
-
7
votes1
answer18750
viewsHow to integrate the application with Whatsapp?
I was wondering if it is possible to integrate an application made in C# with Whatsapp?
-
7
votes1
answer686
viewsCorrect method to write to WEB API?
I did a test using a method this way, test using the Postman is worked, wondered if this way I might have any problem. in the Controller…
-
7
votes1
answer239
viewsProject Dependency Injection . Net Web API 2
I am involved in a project that is developing an application .Net Web API 2 Fw 4.51 (with a view to future migration to .Net Core, what is an 'aggravating'), Fluent NHibernate e PostgreSQL, and we…
.net asp.net-web-api dependency-injection asp.net-core iocasked 8 years, 2 months ago Carlos Felippe Vernizze 71 -
6
votes2
answers605
viewsWhat better way to organize and work with ASP.NET MVC routes?
What better way to organize and work with ASP.NET MVC routes? While we have 1, 2 routes, it’s quiet, but when do we have 500 ? 600 ? In an enterprise application there are many routes, which is the…
-
6
votes2
answers772
viewsHow to implement a chat in an Android app with backend Webapi
I’m developing an Android application that consumes services from a Webapi project. In one part of this application it will be necessary to develop chat between two or more people. Against this…
-
6
votes2
answers618
viewsSending model along with uploading files
I have a web API built with ASP.NET Webapi, I have a model that references a file URI (for example representing a photo in a photo gallery, or a product in a catalog) and I need to send the data to…
-
6
votes1
answer660
viewsHow to send Winform images to a Webapi service c# on both sides
I have two apps, a local running Winform and a remote hosted Webapi. Already send data to the served from Winform, the code is like this: JavaScriptSerializer json_serializer = new…
-
6
votes0
answers220
viewsHow to use Oauth in ASP.NET 5?
In versions prior to ASP.NET 5, there was a middleware called "Oauth Authorization Server Middleware" that allowed adding an Oauth server to the pipeline and setting up token generation. The…
asp.net security-guard asp.net-web-api oauth asp.net-coreasked 9 years, 5 months ago SomeDeveloper 18,074 -
6
votes2
answers1296
viewsOpen ID Connect and Oauth 2
Last year researching a bit about authentication on API's REST I’ve heard of OAuth and saw many recommendations regarding it. I read a little on the subject, liked the same and started using it with…
-
6
votes1
answer6264
viewsUpload file via POST to Webapi
I need to upload a file to a WebAPI, I am using the following code to upload public void Enviar() { WebRequest request = WebRequest.Create(url); request.Method = "POST"; byte[] byteArray =…
-
6
votes2
answers6385
viewsWhat does the HTTP Error 403.14 mean?
Well, I have a Web Api, which is configured as follows: WebApiConfig.Cs public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API routes…
-
5
votes1
answer482
viewsASP.NET Identity and Web API - Problem to register new user
I have a Web API project and I’m using Identity to manage user accounts, my controller is like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if…
-
5
votes1
answer752
viewsError with Asp.NET Web.API + Angularjs
I have my method C# thus [ResponseType(typeof(Categoria))] public async Task<IHttpActionResult> Post(Categoria model) { if (!ModelState.IsValid) { return BadRequest(ModelState); } if…
-
5
votes1
answer210
viewsChange the quality of a video stream c#
I need to change the quality of a video that is being aired by my Api, I’m already sending the file, now I need to change the quality of it at the time of transmission, follow my code below: var…
-
5
votes1
answer376
viewsWeb service hosting equals a website with pages?
I am developing a mobile application with Xamarin. This application is a screen to authorize or not discount above authorized by sellers. So I have a web service that goes into the bank and takes…
-
5
votes1
answer497
viewsWhere and how to save the API authentication token?
Hello, I’m with an angular application, which will consume a API. For that to happen, I must send one POST to another API, which serves only to generate a token that I will pass on all other…
-
5
votes1
answer123
viewsProblem when trying to connect to a Signalr+Angularjs Hub
I have a little project with WebApi,SignalR and Angularjs where I do some queries and inserts in real time. Everything works fine when I start the file index.html right when running the application,…
-
5
votes1
answer311
viewsIndividual User Account between MVC and Webapi projects
I have a MVC project with Individual User Accounts, I use Roles for access management and everything works well. Recently I had the need to create a file manager on another server, I created a WEB…
-
5
votes2
answers832
viewsCreate route to webapi method with parameters via querystring
I have the following route in class WebApiConfig of a project Aspnet Wepapi config.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "{controller}/{action}/{id}" ); Edited: Using…
asp.net-web-apiasked 7 years, 2 months ago Ricardo 14,521 -
4
votes2
answers625
viewsWeb Api 2 - Routing not working
I created a web service REST using Web Api 2, and in development everything is functional. I am using a small variation of the default route: config.Routes.MapHttpRoute( name: "DefaultApi",…
-
4
votes1
answer2652
viewsWeb Api Client in Windows Forms
I am making a client using Web Api. My site has the server function of the Web Api. I found this reference from Microsoft…
-
4
votes1
answer2717
viewsHow to save and return images with Web Api?
How to send and return images from a Web Api from the Controller of an application Asp.net MVC? In my Controller of the project Asp.net MVC I get from View a picture like HttpPostedFileBase and need…
-
4
votes1
answer1165
viewsUsing Data Annotations to validate fields from an HTML page and Web API
Someone has an example of how to create a field validation in an HTML page using Data Annotation, Web API and C#. In MVC with you, this is easily achieved by using Wizard when creating a View.…
-
4
votes2
answers4228
viewsAuthentication in Restful Service
In the example below, I need to pass a login pair/password, because the REST service requires authentication (Basic Authentication). So how should I pass this information in the section below?…
-
4
votes1
answer334
viewsError while trying to consume Webapi service
since this morning I try to catch a JSON that a WebAPI available. I first tried with insira o código aquiAngularjs and was not evolving, so I went to the classic Jquery/Ajax and yet I did not…
-
4
votes2
answers258
viewsGlobal Exception Handling with Web API 2
I’m willing to use the Global Error Handling with Webapi 2. I created a new project, within it I created the following class: Errologteste.Cs using System; using System.Collections.Generic; using…
-
4
votes2
answers75
viewsHow to obtain a cookie in the Web API in a Forms Authentication scenario in Cross Application?
I have the following applications . Net: Web Application with Forms Authentication (I’m not using MVC, I use Backbone.js to call the REST API) Web API REST application sharing the same Forms…
-
4
votes1
answer3333
viewsError while consuming Web API
Hello, in an ASP.NET MVC web project I am trying to consume an API that is a Web API project, the two applications are running on the same server. When I access the MVC application error occurs when…
-
4
votes3
answers3759
viewsUsing Token method GET Webapi Httpclient
My problem is this: I am consuming a Webapi with the method PostAsJsonAsync In this call I am receiving a Token for authentication in the ADMIN methods of an EAD platform that we are working on. So…
-
4
votes1
answer727
viewsFundamental principles REST
In this Article by Infoq, the author highlights the five fundamental principles of REST: Give all things an identifier Link things (resources/identifier) Use standardized methods Features with…
-
4
votes1
answer1918
viewsWEBAPI AND A3 CERTIFICATE - TOKEN
Can anyone here use A3 type certificate for a WEBAPI ? Because when I test it in debug (i.e., local), everything works normal. But if I compile, and put in the IIS application, keeps returning me…
-
4
votes1
answer2169
viewsBest practices when filtering a query with Entityframework
I have a web api method that receives a model from a search form and according to its values, it starts to filter the result of this search, as an example below. public HttpResponseMessage…