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

1
answer

Web API and Owin OAuth - redirect to another domain (redirect_uri)

Good afternoon, I'm having a problem implementing external login in a project I'm working on.    ASP.NET Web API + Owin + OAuth. Environment: I work with two Server1 and Server2 servers. Server1: Server published on the WEB. It hos...
asked by 09.05.2016 / 22:01
3
answers

Web security api: SSL?

I would like to know if you can restrict requests to a web api specifically for a machine. My api web will be hosted on computer A. My client (at first only one) will be hosted on the computer B . Different servers, different machines....
asked by 02.09.2017 / 20:19
2
answers

Angled POST with customized header and CORS

I need to perform a POST request using angular (http.post) and I need to pass my access credentials (I am using basic authentication) to my API (.NET) in my header.    Authorization : Basic dXNlcm5hbWU6cGFzc3dvcmQ = No angular change the...
asked by 26.10.2015 / 18:17
1
answer

How to use the ruleset functionality of FluentValidation in Web API?

I would like to use a FluentValidation feature called ruleset in a Web API project because it does not I want to have to be doing model validation manually every time an action method is called. So I used the FluentValidationModelVali...
asked by 06.01.2016 / 12:31
1
answer

Working with angularJS in master page asp.net

I've been involved with angularJS for these days, so at this stage of learning, a question arose. How do I work with angularJS in ASP.NET pages that have a master page? For example, I noticed that the "ng-app" directive should be pl...
asked by 21.08.2014 / 13:38
1
answer

Differences over WCF, WebService and WebApi with Asp.net?

I will create a service to make my company's data available to a customer. But I am evaluating the creation of the services and I came across this technical doubt. I know there are differences between the 3, but I do not know exactly how to eval...
asked by 25.02.2016 / 17:07
1
answer

Multi-Client Web API Structure

I have 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 it to allow my application to be accessed by multiple clients and that each client access y...
asked by 03.01.2017 / 14:43
1
answer

Dependency injection in .Net Web API project 2

I'm involved in a project that is developing a .Net Web API 2 Fw 4.51 application (with a view to future migration to .Net Core , which is an 'aggravating'), Fluent NHibernate e PostgreSQL , and we're choosing a IoC con...
asked by 27.08.2016 / 12:55
1
answer

Correct method to write to WEB API?

I did a test using a method this way, test using PostMan is worked, I wanted to know if this way I can have some problem. No Controller //http://localhost:1608/api/ApiGuiaCidade/cadastrar/cliente/jose/02-02-2015/[email protected]/124546 [Ht...
asked by 07.12.2015 / 01:10
2
answers

What better way to organize and work with routes in ASP.NET MVC?

What better way to organize and work with routes in ASP.NET MVC? While we have 1, 2 routes, it's quiet, but when do we get 500? 600? In a corporate application there are many routes, what is the best way to organize them without losing contro...
asked by 07.08.2014 / 23:56