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

2
answers

How to implement a chat in an Android application with WebApi backend

I'm developing an Android application that consumes services from a WebApi project. In one part of this application will be necessary the development of chat between two or more people. Given this scenario, what is the best approach to develo...
asked by 05.03.2015 / 18:47
1
answer

How to send WinForm images to a C # WebAPI service on both sides

I have two applications, a WinForm running location and a WebApi hosted remote. I already send data to the server from WinForm, the code looks like this: JavaScriptSerializer json_serializer = new JavaScriptSerializer(); string DAT...
asked by 20.05.2015 / 16:43
0
answers

How 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 configuring token generation. The middleware was easy to use, worked well, and gave acc...
asked by 05.06.2015 / 14:35
0
answers

OAuth 2 Authentication Server in ASP.NET Web API

The company that works to develop internal applications, but due to policy issues, we will have a subdomain to handle authentication such as: login.domain.com where you will have an app responsible for administering customer data in a separate b...
asked by 11.02.2016 / 01:45
1
answer

Upload file via POST to WebAPI

I need to upload a file to WebAPI , I'm using the following code to upload public void Enviar() { WebRequest request = WebRequest.Create(url); request.Method = "POST"; byte[] byteArray = File.ReadAllBytes(fileName); re...
asked by 16.09.2016 / 14:17
2
answers

Open ID Connect and OAuth 2

Last year searching a bit about authentication in API's REST I heard about OAuth and saw many recommendations regarding it. I read a bit about it, I liked it and I started to use it with ASP.NET Web API 2 . Now I've only r...
asked by 06.06.2015 / 22:12
4
answers

Problems initializing a type inside a query with LINQ

I'm going through the following problem, I am putting an API into a forum application and this API needs an endpoint to return a collection of Forum that have the% property of% null. Then I put the following endpoint : [AllowAnonymou...
asked by 06.01.2016 / 11:43
1
answer

Problem trying to connect to a Hub SignalR + Angularjs

I have a project with WebApi , SignalR and Angularjs where I do some queries and insertions in real time. Everything works fine when I start the file index.html direct when running the application, however if I try to...
asked by 05.07.2016 / 22:13
1
answer

ASP.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, in my controller it looks like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if (!ModelState.IsValid) { return...
asked by 19.05.2015 / 22:42
1
answer

How to integrate the application with Whatsapp? [closed]

I wanted to know if it's possible to integrate a C # application with Whatsapp?     
asked by 19.07.2017 / 14:48