Data dodania Pytanie
2016-12-29 17:12 How to download a ZipFile from a dotnet core webapi? »
I am trying to download a zip file from a dotnet core web api action, but I can't make it work. I tried calling the action via POSTMAN and my Aurelia ...
(1) odpowiedzi
2016-12-29 12:12 OwinMiddleware and dependency injection »
I'm trying to create an OwinMiddleware object to register in a pipeline to pull out some creds from the incoming request and apply them to a service i...
(0) odpowiedzi
2016-12-28 20:12 How do I set up RESTful attribute routing in ASP.Net Core API if using Namespace version routing »
I am building an ASP.Net Core 1.1.0 web API. As a supporting comment, I have chosen to use Peter Lazzarino's versionrouting NuGet package to allow m...
(3) odpowiedzi
2016-12-28 16:12 PreRegistrationHandler not failing on Task error code »
I am trying to implement validation on a custom data attribute through the PreRegistrationHandler. This works great when it passes validation. Howev...
(1) odpowiedzi
2016-12-28 14:12 Pros and Cons of using json array and json object »
My question is little theoretical but it's interesting one. I want to know which approach is best while using web api. I've two methods One has Li...
(1) odpowiedzi
2016-12-27 20:12 Stormpath OAuth 2.0 unsupported grant type »
Per Stormpath documentation, for the password grant_type, all one would need to do is make a post request like below: POST /oauth/token Host: myapi.c...
(1) odpowiedzi
2016-12-27 12:12 Dotnet core app not found appsettings.json in production »
I've developed a Web Api + Angular JS application that work well in Dev Env. When I've deploy it under linux box, it fails to load appsettings.* when...
(0) odpowiedzi
2016-12-27 10:12 passing Array data dynamically in URL to call webapi method (C#) »
below is my json generated data from the backend {"langs":[{"cisAreaId":100,"area":"Prog","name":"C#"},{"cisAreaId":110,"area":"Prog","name":"Java"}...
(1) odpowiedzi
2016-12-26 19:12 Get local datetime instead of server DateTime in server side code C# »
I am using ASP MVC 4.5. I have view to input payment details. I use C# to get current time when user input payment. But after hosting it on server, i ...
(4) odpowiedzi
2016-12-26 17:12 Getting WebApi Exception Response in an Exception Filter »
We installed an Exception filter public class APIErrorHandlerAttribute : ExceptionFilterAttribute, IExceptionFilter { // Sets up log4net logger...
(2) odpowiedzi
2016-12-26 08:12 Convert response to accessible object properties »
I'm using HttpClient to get data from a link. Here is my response: #S7Z OK #Mon Dec 26 02:26:58 EST 2016 image.anchor=168,186 image.embeddedIccProfi...
(2) odpowiedzi
2016-12-25 18:12 How can we upload a file to a server? »
This is my api [HttpPost] [Route("uploadfile")] public HttpResponseMessage PostFile(HttpRequest request) { HttpResponseMessa...
(0) odpowiedzi
2016-12-25 17:12 Alternative headers to "application/x-www-form-urlencoded" »
So I have a funny little problem. When calling my API from an AngularJS client with the following code, everything works fine, except that my API onl...
(0) odpowiedzi
2016-12-25 09:12 Unable to get aspnet core api naming to work »
I have a client controller that is called "ClientController". The start of the controller is as follows: [Route("api/[controller]")] [AllowAnonymous...
(1) odpowiedzi
2016-12-24 20:12 Auth in ASP.NET Core MVC for WEB API »
I want to develope an application (UWP and Android). For the sake of simplicity suppose that this app will present a list of strings from the server (...
(0) odpowiedzi
2016-12-24 10:12 Best way to build/map a model from a request and response on Web API 2 »
In my WebApi 2 application I have this basic structure: Request / Response Models -> Domain (Business) Models -> EF Data Models WebApi Controllers ...
(1) odpowiedzi
2016-12-24 09:12 Webapi returns JSON in string XML »
I have developed WebAPI for mobile which should return JSON and it is working fine returning JSON but JSON comes under XML. Below is my code and scre...
(1) odpowiedzi
2016-12-23 19:12 How to return Custom HTTP Status code + message in IEnumerable<xxx.Models.xxx> function »
public IEnumerable<xxx.Models.Product> ReviewAll(string para1, string para2, string para3, int para4) { return //HTTPStatusCode } Currentl...
(1) odpowiedzi
2016-12-23 17:12 Reterieving the response from Rest API »
I am working on creating an API that call the other third party API. The third party API is an REST API and returns response in the JSON format when I...
(2) odpowiedzi
2016-12-23 03:12 ASP.NET Call to API Endpoint returns 500 - Internal Server Error »
I am calling a Rest API using a basic http authentication public string Get(string LabName) { string userName = ConfigurationManager.Ap...
(1) odpowiedzi
2016-12-22 22:12 AngularJs, WebAPI, JWT, with (integrated) Windows authentication »
I've asked a question before and the answer that was given was correct but the farther I go down this rabbit hole the more I realize; I don't think I ...
(1) odpowiedzi
2016-12-22 18:12 Format the response from the Web API »
I have a Web API runs a stored procedure and returns the records from the table.The record includes the int field called CounterSeq [HttpGet] public ...
(3) odpowiedzi
2016-12-22 15:12 WEB API .NET Action with custom endpoint names »
So I've set up a backend in .NET and the basic HTTP calls are working. Now I need an alternative method that will not search by ID but by a property, ...
(3) odpowiedzi
2016-12-21 17:12 ASP.NET Web API - Request Specific Global Variable »
When I receive a Web API request, I want to create a variable that will be accessible by every class during the life-cycle of the request. I want it t...
(2) odpowiedzi
2016-12-21 16:12 LDAP injection in LDAP query c# »
this is my bool connection for validating whether an user is in AD group or not. I got a security flag in my code. private bool testconnection(st...
(0) odpowiedzi
2016-12-21 07:12 Unable to install the System.Data.SqlClient »
I am trying to create Web API that will connect to the SQL server and run the stored procedure. I wanted to install the System.Data.SqlClient in to th...
(0) odpowiedzi
2016-12-20 18:12 How can I send mail from an Angular web application running in a client's browser? »
I'm currently working on an internal project that uses AngularJS on the frontend and queries a C# Web API for data on the backend. Using this setup, I...
(2) odpowiedzi
2016-12-20 17:12 Proper way to handle errors in ASP.NET Web API »
In the Web API that I'm working with, I have several conditions I'm checking for before I send JSON response to the calling program. One way I have h...
(2) odpowiedzi
2016-12-20 15:12 .NET WebApi How to prevent "$ref": "x" output of JSON »
I'm Using Web Api with Entity Framework, I have a controller named as Gift, when client GET's the API I'm getting all Gifts from DB by using entity fr...
(1) odpowiedzi
2016-12-19 21:12 Wrapping IHttpActionResult - Generic solution »
I'd like to wrap IHttpActionResult because I need some extra data to be consumed by the client app. My first approach was to create and return simple...
(2) odpowiedzi
2016-12-19 13:12 ASP.NET Identity UserManager IIdentityMessageService pass extra parameters to SendAsync »
I've successfully created custom email service provider for UserManager by extending IIdentityMessageService: public class ExchangeEmailService : IId...
(0) odpowiedzi
2016-12-19 10:12 How to parse Json WebApi response containing C# list »
hi I have a json response like {"Status":"Success","Message":"Authentication successful","Data":{"Key":"sdsdIRs99Iebe6QHmawlBsCks9mqfUt6jKYNQ%2...
(2) odpowiedzi
2016-12-18 19:12 Secure WebApi call using a client certificate c# »
I am trying to make a secure web api call to a 3rd party. They provided us with a .jks client certificate. I used keytool to convert it into .pfx file...
(0) odpowiedzi
2016-12-18 16:12 Outlook API: getting access-token from front-end, how can i use it in web API backend to get Outlook messages »
Im writing a application for outlook, front-end Angular, backend Web API. I'm successfully getting access-token using adal in front-end, sessionStorag...
(1) odpowiedzi
2016-12-18 05:12 Is there a way to change Property Name in JSON data »
Is there a way I can change the column/property name I'm returning from a JSON response through a Web API ? Sample JSON response: [ { "ActualProp...
(2) odpowiedzi