Data dodania Pytanie
2017-06-05 02:06 testability considerations while creating controllers »
I am writing controllers in Web API 2, against which odata queries will be executed: [Route("", Name = "GetAccount")] [HttpGet] public async Task<...
(1) odpowiedzi
2017-06-04 23:06 GET operation in ASP.NET API with Entity Framework »
I've built an ASP.NET Web API using Entity Framework CodeFirst approach. The database tables it created represents a relational database as I expected...
(1) odpowiedzi
2017-06-04 16:06 When and how to use POST, PUT, and Delete method in Web API »
I am new to Web API and the tutorial I was watching uses Fiddler to sniff and send request. My question is how to use the post, put and delete method...
(2) odpowiedzi
2017-06-04 00:06 Reusing DTO for various request/response types vs explicitness of what is required / what should be returned »
I started wondering on whether I am not falling into an antipattern here, so please advise on the best practices. I am designing a REST API with a se...
(3) odpowiedzi
2017-06-03 18:06 REST API - should JSON content be HtmlEncoded? »
We have a setup with angular front-end app and asp.net core web api backend. API responds with json. Question is, should json properties be html encod...
(2) odpowiedzi
2017-06-03 17:06 bearer token is not working with my Authorize Attribute Roles with WebAPI, Username is null »
I can log in and get the token key from http://localhost:58507/token by Postman I can call an api with just [Authorize] Attribute But when I set the ...
(1) odpowiedzi
2017-06-03 10:06 does OData supports groupby for Enum type? »
Version of OData: <?xml version="1.0" encoding="utf-8"?> <packages> <package id="Microsoft.AspNet.OData" version="5.9.1" targetFrame...
(0) odpowiedzi
2017-06-02 12:06 Modifications in json format »
This is my api in json format [{"tu_id":1,"tu_name":"Akhil","tu_usrname":"Akhl","tu_pwd":"1234","tu_cntno":"423433"}] I want ID instead of tu_id...
(2) odpowiedzi
2017-06-02 11:06 Property 'body' does not exist on type 'Request' »
The req variable of Request type has no intellisense for property body. Is this due to the typings? import { Request, Response } from 'express' impor...
(2) odpowiedzi
2017-06-02 07:06 Fingerprint scanner API call error »
I am trying to integrate safran morpho biometric device with my C# windows form application.An error occurred after scanning . Code: using (var cl...
(0) odpowiedzi
2017-06-01 17:06 Allowing parameter name to have "[" in ASP.Net Core WEB API »
My action method should look like: public IActionResult GetAll([FromQuery]string page[Number],[FromQuery]string page[Size]) { //code } HTT...
(1) odpowiedzi
2017-06-01 15:06 Unit Tests, how to simulate return of null data to get a 100% coverage »
I have the following API controllers which gets data from some master tables (for dropdowns) in a web UI. public List<Personas> GetPersonas() {...
(2) odpowiedzi
2017-06-01 13:06 Using @addTagHelper in ASP.NET Core WebAPI. ASP.NET Prerendering »
I am developing "ASP.NET Core Web API" with "Angular 4". And this is my usual approach to use "Web API" template, so there are no folders such as View...
(1) odpowiedzi
2017-05-31 18:05 How to provide extra methods for returning IHttpActionResult? »
I have an ApiController that returns OkNegotiatedContentResult<T> with a resource collection, paginated. Naturally, there will be more methods t...
(1) odpowiedzi
2017-05-31 14:05 How to use Linq to Entities in ApplicationOAuthProvider asp.net web api2 »
this code return error does not support linq to entities, please help me error return is LINQ to Entities does not recognize the method 'System.String...
(1) odpowiedzi
2017-05-31 08:05 Get Origin when request made internally instead of browser »
I am making request from one web API to another. I want that only first API can make request to second API, other should not allowed to do so. I have...
(1) odpowiedzi
2017-05-30 22:05 http get method does not supported when using datetime parameter »
I have Webapi service controller that supports two get method which distincts by parameter Controller public class DailyRecordController : BaseApiCo...
(2) odpowiedzi
2017-05-30 21:05 how to return createdatroute location? »
I'm attempting to create a record like so: [Route("", Name = "CreateAccount")] [HttpPost] public async Task<IHttpActionResult> CreateAccount([F...
(1) odpowiedzi
2017-05-30 14:05 C# WebClient uploads file that is around twice as large as original »
I am testing some file uploads using WebApi 2.0. I created a controller that has an upload method and I also created a console application to perform ...
(1) odpowiedzi
2017-05-29 15:05 Setting up background work item using MoQ »
I am new to unit testing and I am having some difficulties with unit testing background workers. Method being tested [HandleExceptions(LoggerName)]...
(1) odpowiedzi
2017-05-29 10:05 web api authentication in MVC application? »
I'm confused on how the Web API implements the authentication? I have gone through the links 1. Link1 Link2 and need to summarize what I underst...
(1) odpowiedzi
2017-05-29 08:05 Returning single object and string from web api controller method »
I am in a situation where i need to return the single object along with string .. I am very new to web api and just could not be able to figure it out...
(2) odpowiedzi
2017-05-28 21:05 Streaming video from asp.net core web API to Android/iOS »
I'm facing an issue in my current Web API project. I have a database and one of the tables has a column of type varbinary. I would like to build an ac...
(0) odpowiedzi
2017-05-28 11:05 Why Web Api (.Net Core) always return JSON ignored the value in ContentType? »
I have 2 web APIs and they have the exactly same code and same references. The first one (called Project A) runs under .net 4.6 and is the old web ...
(1) odpowiedzi
2017-05-28 06:05 OWIN ASP.NET - Cant generate Access Token using Refresh Token if Access Token is expired »
When I try to generate an Access Token using the Refresh Token before Access Token expires, the system generate a new one and everything is okey. But ...
(1) odpowiedzi
2017-05-27 19:05 Are there benefits of using asynchronous action methods in Asp Net MVC application that consumes Asp Net Web Api with synchronous action methods? »
I am developing an Asp Net MVC client that will use Asp Net Web Api. And I have to decide on how to better design my application. After searching the ...
(1) odpowiedzi
2017-05-27 19:05 ASP.NET Webapi with parameter »
I am building a webapi to getBalance of a customer from Db.It works well and i can retrieve the data.But the problem is in the parameter part. For eg...
(2) odpowiedzi
2017-05-27 00:05 MVC favicon.ico routing for WebAPI »
I have a ASP.NET Core MVC/WebAPI project using .NET Framework 4.6.2. In my solution I have different favicon images for each environment (DEV, Staging...
(1) odpowiedzi
2017-05-26 21:05 Web API not parsing get parameters correctly »
I have the following url http://localhost/api/map/tmc/identify? geometry={x:-112.0469856262207,y:33.3926093953406, spatialReference:{wkid:432...
(1) odpowiedzi
2017-05-26 20:05 WebApi versioning a single controller »
I am just starting to get into WebApi and what I am trying to understand is if you can have 1 controller that handles multiple versions. so instead o...
(1) odpowiedzi
2017-05-26 09:05 How to read sub Nodes from xml nodes list using c# »
following is my cXML data, and able to load cxml data to xmlnodeslist from xml payload request, now i want to read all the sub nodes from xmlnodeslist...
(1) odpowiedzi
2017-05-25 22:05 Serving Files and Routes from Web API »
We have an existing Web API project that we want to now serve 2 clients from root as well (accessed via different subdomains). What is the right way t...
(1) odpowiedzi
2017-05-25 19:05 Internal Server Error 500 when using Web Api Http Put »
I'm developing a Webapp to a company that use Picking Process. The process is very simple, I have a sales order with some information, and i creating...
(2) odpowiedzi
2017-05-25 12:05 Can't get documents by ID in MongoDB Web API »
My Get request allows me to get the first document in my collection by ID but won't allow me to get any other documents by ID, so it only ever returns...
(1) odpowiedzi
2017-05-24 16:05 Accept multipart/form-data along with other parameters in WebAPI request body »
I need to come up with a ASP.NET WebAPI method that accepts a request containing an uploaded file and a few other parameters. The C# model for this re...
(0) odpowiedzi