Quantcast
Channel: Web API
Browsing all 4850 articles
Browse latest View live

Limit List to 15,000 during model binding from controller to model

I have the below method in a controller that binds the JSON HTTP content from the request to our model:Post(Request request) { }public class Request{private List<object> myObject;public...

View Article


authorization and authorization problem

asp.net.4 c#i cant pass authorization on authorization so with omitting the authorization everything is working fine<authorization><deny users="?" /></authorization>so whats is...

View Article


Web API 2.0 - An error occurred when trying to create a controller of type.

Hello Everyone,I'm quite new with Web API 2.0. I created a new Web API 2.0 class file in one of the web application project for .Net framework 4.5.I created a sample public method Test (no passing...

View Article

use foreach in a web api

I want to use foreach in a web api but this does not allow me to return the value of each record on each loop. how can I return the value of all records? here is my code: public IHttpActionResult...

View Article

Relations between two EdmEntityType in oData Web.API

Hi I'm using web.api oData and greate my data model with dynamic with EdmEntityType. I can read the oData-Stream with Excel Power Query, but have to add the relations between the EdmEntityTypes/Tables....

View Article


Incorporate Security in Web API - with an existing Asp.Net MVC5 application

Hi all!We have already running Asp.Net MVC5 application with FormAuthentication using ASPMembership with Azure. It is working fine. There are certain requirement to expose our urls to external parties...

View Article

IHttpAsyncHandler don't receive session cookies from asp web sites

I had make an reverse proxy using IHttpAsyncHandler class that listen on the iis request and according to the incoming url path i send a request to another sitepublic class ReverseProxy :...

View Article

Regarding mvc project type and web api

i was reading an article from here http://www.c-sharpcorner.com/UploadFile/2b481f/how-we-can-create-a-downloadable-web-api/i saw they select mvc project type but select web api template instead of...

View Article


Unit Testing IHttpActionResult Created method

I have a Web API method that I am calling from an MVC Controller and I need to know how to Unit Test my project from my Service Layer as well as from my Presentation Layer.My Web API method looks like...

View Article


Post from a Form with several fields and a File

I'm building a WebApi to send e-mails through SendGrid.The html page is a Form with the several fields (From, To, CC, Bcc, Subject and Body) and now I want to add Attachment.the webApi is:public async...

View Article

Created vs CreatedAtRoute IHttpActionResults

I am creating my WebAPI methods and when creating my Post method, I am very unclear about what is the underlying difference between Created and CreatedAtRoute methods as outlined in...

View Article

Odata and Breeze js

Where are we currently with the support for Breeze.js?For example, on breeze's website there are a number of things that web api odata does not support. For example, producing the full meta data,...

View Article

Post to user's facebook wall asp.net

Dear all,I just want to know/confirm that is 'App Review' necessary for integrating 'publish_actions' permissions in our app...

View Article


odata $batch question

1a. Will a $batch insert which includes a parent and child record be smart enough to know to insert the parent first into the database, otherwise throwing a foreign key exception?1b. If the above isn't...

View Article

How to integrate Azure diagnostics (WAD 1.2) into a Web API project

Hi,I was getting up to speed on the basics of web apis using the following tutorial which seems to work...

View Article


HOWTO Customize Request.CreateResponse on ApiControllers.

HOWTO Customize Request.CreateResponse on ApiControllers.Please help,I want to customize how a typical method of an ApiController class has its HttpResponseMessage made.Given this sample:namespace...

View Article

odata4 javascript library

What is the best javascript library to use to consume odata4?Datajs is for odata 1-3v, correct?

View Article


Create custom Facebook share button

Hi The below code is what FB provide to create a icon share button but how i can change in the below code to use my custom image, 2nd the page that i will insert the button in is dynamically change...

View Article

Web.Api + MVC ?

Hello all,I have a solution where I am creating a Web.Api project to serve all devices with a lot of services and an another MVC project to serve desktop/laptops with a website.However I was thinking:...

View Article

Web API 2.0 - How to pass date parameter to controller?

Hello everyone,I would like to pass date type parameter to controller, can anybody advise how to do that? Sample code will be much helpful.I'm calling the controller action using AJAX call from...

View Article
Browsing all 4850 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>