Questions tagged as 'asp.net-web-api'

1
answer

Restricting access to data with REST

I would like to know if it is possible to restrict access to the data of my REST application. For example, I have the xml / json that it returns in link >, where it returns me to my list of users. So anyone who discovers the url, c...
asked by 25.07.2014 / 22:17
1
answer

Is web service hosting the same as a site with pages?

I'm developing a mobile application with Xamarin. This application is a screen to authorize or not to discount above that authorized by the sellers. So I have a web service that goes in the bank and takes all the relevant information to the cl...
asked by 15.08.2017 / 15:21
1
answer

Fill date and time in View mvc 5 razor

I have a registration form where I have a record date field that I currently fill in my save method, except that my server is hosted in another country where the field is being filled from the location of the hosting, quite different from where...
asked by 12.12.2018 / 19:27
1
answer

How to get filenames inside folders on WEB server API

I have a directory File / Uploads AndIwouldliketolistallfiles,insidethisdirectoryIhaveNfolders.WhatI'veachievedsofarishere.stringpath=HttpContext.Current.Server.MapPath("~//Arquivos//Uploads"); string[] files = System.IO.Direct...
asked by 08.01.2017 / 00:20
1
answer

How to return a message along with an HttpStatusCode

I have the following method in my Controller : public IHttpActionResult Get(string id) { var product = objds.GetProduct(new ObjectId(id)); if (product == null) { return NotFound(); }...
asked by 16.06.2016 / 16:04
1
answer

Test concurrent queries on the REST server

I have a REST/WebApi server and wanted to test its performance with concurrent queries. My objective is to test, logically, the performance, and also if it is treating each request separately, that is, each query is handled by a process, thus...
asked by 01.08.2015 / 15:08
1
answer

Error consuming Web API

Hello, in an ASP.NET MVC web project I'm 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 this application attempts to consume the Web...
asked by 31.07.2015 / 15:04
1
answer

What are the differences between Container (Docker), App Service and Service Fabric in Azure?

When we publish an application, service or Web API we have a great diversity of options today. I particularly like Azure because of its mentality of facilitating the settings by the panel and passing the complexity to other parts of the applicat...
asked by 15.08.2017 / 22:43
1
answer

Return message along with UnauthorizedResult

I'm using .NET Core 2 to create a dependency that will be injected into an API. The idea is to create a middleware to control incoming requisitions and act on a set of business rules. It is worth pointing out that I can not change the API itse...
asked by 12.09.2017 / 16:43
1
answer

What better way to synchronize desktop app data with webapi?

I have my desktop application that needs to send data (only send) to a webapi, this data can not be sent repeatedly and also after sent, not send again, the desktop app will be in .net (wpf) the webapi also asp .net webapi. The desktop applic...
asked by 30.06.2014 / 19:05