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

Asp.net Identity MVC, web api for business logic an JQuery

HiI'm testing a project with Identity and Web Api.I developed a web application that manage the user registration with MCV as describe in the guide and this work fine.I think to manage the user...

View Article


Consuming Facebook authentication in Web API

Hi. I am trying to implement Facebook authentication in a Web API project which will be used by mobile clients. There will be no local login.I followed the steps explained here to create the project...

View Article


Content Negotiation not working in Safari Browser

We have Web API which returns Application/JSON by default and if we give specific Accept Header like image/png then it returns image.So in our HTML Page we call this API in the IMG SRC tag like...

View Article

Is there a way to retrieve the precise source code from a URL that a browser...

I've been given the task of reading the HTML contents from one URL within my company, allowing edits to occur, and then reposting at another location.  This is the C# code I'm using to retrieve the...

View Article

How to deal with Huge returns from webAPI?

HiI have an application that uses web API to request info from a cloud service, the return results are sometimes millions of rows.What is the best way to get that data back to the mobile app?Is webAPI...

View Article


Add param to header in SOAP API

Hi,I have problem to add parameter to header in soap request. What I do:1. At first I create Service References. 2. Second step I run method "Login" asUslugaBIRzewnPublClient statGovAPI = new...

View Article

Web API Response Format (Metadata)

I want to have uniform response for my all APIs (e.g. Count of records, records wrapped up in placeholder, no of errors if any encountered during processing of API request...

View Article

Best book for web api 1 and 2

i want to learn web api from scratch to upto date with web api2. so i am looking for a best book which a beginner should consult. so suggest me a book which help me to learn web api from beginning to...

View Article


Securing web api2 with storing username password in sql server

<div class="post-text" itemprop="text">I need to implement secure WebApi2, having token based authentication. However, the username and password should be stored in SQL server database.Found an...

View Article


How to work with REST API? Can anyone help?

So, I am working on a program that offers c# and Java REST API SDK.I have a website and I was a webpage on my site to be able to communicate with this program via its REST API.I have gone through many...

View Article

Calling two Web Api methods: one already hangs

Hi,I have two web api controllers both defining a web api method. When executing these two web methods directly one after the other I get a timout for always the same web api method. My logging tells...

View Article

How to pass List of Objects in Fiddler?

<p>I have a query, how can I pass a List&lt;Model&gt; abc in Fiddler in JSON format.</p><p>List&lt;AddBrand&gt; brand</p><p>public class AddBrand<br>...

View Article

Copied Web API only replies with 404 - not found

I copied the Project folder for a working Web API and renamed it.  Followed steps online to rename the project, solution, default namespace and assembly.  It builds without errors, but responses with...

View Article


Controller naming dilemma

Hi all,I've dilemma about naming in Web API. Example:Action should return all users with specific role. How to name controller and how to name route on controller and action?[RoutePrefix("api/users")]...

View Article

How to return different representations of a resource?

Heyho community,I am a newbie to ASP.NET Web Api hence I'm having some trouble with what I'd like to do. What I want to do is have my controller return different representations of the same resource....

View Article


What is Auto REST? And how is it different from regular REST?

Hi,I would like to know what "Auto REST" is and how it is different from the traditional REST. If there is any sample code for AUTO REST, that would be greatly appreciated!Thanks in advance.

View Article

Question, How to I pass an integer and an array of strings in the urI

Could someone please help.  I am trying to figure out how to pass an Integer parameter and an array of string to my (GET) WEB API.  I know that for complex types like arrays, that you have to pass them...

View Article


Reflection , get all derived classes

Hello :I have a nuget package , project. I have Implemented abstract class here.Code Sample//Nuget Package Project namespace Common.Base { public abstract class DocumentBase { public abstract byte[]...

View Article

Posting of wcf/wpf web api to asp.net web api

Hello,How can we port a wcf/wpf web api to asp.net web api ?

View Article

OData Having difficulty building a simple OData service.

Trying to build an OData service based on the Entity Relations in OData v4 Using ASP.NET Web API 2.2I did get this tutorial running.Now want to build with one of my tables.Model:namespace...

View Article
Browsing all 4850 articles
Browse latest View live


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