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

1
answer

APP database [closed]

Dear friends, in a mobile solution type an application that manages a jet lag where users create their account and can automatically manage their clients, cash flow, scheduling and etc ... These applications consume a web API, the question is. D...
asked by 27.06.2017 / 03:49
1
answer

Token Provider Asp.Net WebAPI

In the company I work with we do authentication and authorization via Bearer Token in an asp.net webapi app, however I keep some information about user permissions with Claims ... and this makes the Token look huge. I found a way to generate...
asked by 21.02.2017 / 14:04
1
answer

How to configure Api web route to accept query string?

I have a web api with the following method: [HttpGet] [Route("api/documento/doc/list?{cpf}")] public string Listar(string cpf) { return "value"; } I need the above method to be called through the url:    link The big pr...
asked by 15.02.2017 / 13:52
1
answer

Restrict access to the Web API

I have a Web API where I restricted access to your methods through EnableCors , indicating the URL I want to give permission, as follows: namespace WebService.Controllers { [EnableCors(origins: "http://myapp.net", headers: "*", metho...
asked by 07.07.2016 / 04:42
1
answer

Serialization - WebApi for WCF with base type property (abstract)

I have a problem here where I have a WebApi consuming a WCF. Basically I'm having trouble receiving a WCF property that is the base type of the class I'm actually sending. I'll give you an example to make it easier to explain:      [DataContr...
asked by 17.07.2014 / 19:01
1
answer

When and how to use asp.net web api

I've been studying Asp.net MVC for some time, I've read about WebApi but I still can not figure out when and how I can use it. Ex: I have a small news system, where I have a area where the administrative part and the root projec...
asked by 04.07.2014 / 05:45
1
answer

Create a record and add relationship through httpPost of Web Api

When creating a new record in the tab I need to get the id of my main screen and send it along with the new object. Currently I have this code: public async Task<IHttpActionResult> PostMenuProduct(MenuProduct MenuProduct) {...
asked by 06.06.2014 / 18:28
1
answer

Use Identity in an Asp.Net MVC 5 application with Web Api and vice versa

When I create a project Asp.Net MVC with Individual User Accounts I can enter the application in this way: var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);...
asked by 10.09.2014 / 14:53
1
answer

Can the automatically generated .mdf database in App_Data be used in production?

Can the database automatically generated within the App_Data folder in projects Asp.Net MVC and Web-Api be used in production or is it a test-only basis?     
asked by 15.07.2014 / 13:45
1
answer

Share Web API access token in different domains

Hello. I'm having a hard time sharing a bearer with different domains. This happens because I have to make a login page outside the domain of the site that consumes the REST API. This site maintains the token in the localStorage, which is not...
asked by 10.10.2017 / 14:17