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

Image may be NSFW.
Clik here to view.

500 Error Web API IIS

in my IIS local and hosted in aws got this error when I publish my web API app got this errorasp.net 

View Article


How to modify results i get from WEBAPI2 in postman ?

hi all.i am very new to restful services and web api. i need a little help.this is the code im working with :using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace...

View Article


How to explain Web API is rest

when we search google what is rest then big theory comes but how could i explain point wise that web api is rest.please guide me.

View Article

StatusCode: 400, ReasonPhrase: 'Bad Request'

Dear All,            I had a working code for saving data from sales force to hubspot.try { var baseAddress = new Uri(ConfigurationManager.AppSettings["Hubspotbaseaddress"]); using (var httpClient =...

View Article

C# Load html from url : i receive raw HTML without filled table instead of...

I try to load html from url. I try to do webscraping.Problem: http://5.51.127.237:50200/Watcher/cryptowatcher - try to do Save As and look for "currencyAlerts"table in the html file. It has only one...

View Article


Image may be NSFW.
Clik here to view.

How to hide the directories in Web API service url while browsing

Hi Everyone,while browsing the API Service url, it's showing all the files, folder and config files. How to not display those directories while browsing the url. Instead of getting directories, I need...

View Article

How to display ICollection in Postman ?

This is the code im working with . The MENUCATEGORY has a list of ITEMS. How to show that result on Postman , than when i write this url  http://localhost:49477/api/menucategories1/coffee   (for...

View Article

Custom XML Generation through Web API

Dear Team, I wanted to create a complex XML using WebAPI.  I had defined the classes (models) and fetched the required data from the database using ado.net to produce the xml .  The xml should be...

View Article


Getting JsonSerializationException

<div>Hello,</div> <div> </div> <div>I'm having an issue trying to convert an object to json. The error is a Newtonsoft.Json.JsonSerializationException:</div>...

View Article


response sending back NullReferenceException

<div>Hello,</div> <div> </div> <div>I'm having an issue returning data from a web API call.</div> <div> </div> <div>The web API function looks like...

View Article

Retrieve an image file from db as an array of bytes through WEB API

Hi, I have the following API:public HttpResponseMessage GetExpediente()        {            db.Configuration.ProxyCreationEnabled = false;            //db.Configuration.LazyLoadingEnabled = true;...

View Article

Publish web api project

Hi, I am currently looking at all the different options to programmatically publish asp.net web api to azure. we have 5 different environments DEV, TEST, UAT, PrePROD, PROD. As of now I manually...

View Article

Retrieve an array of bytes from a controller

Hi, I have the following API:public class ExpedientesController : ApiController    {        private Ejercicio2Entities db = new Ejercicio2Entities();        // GET: api/Expedientes        public...

View Article


How to read Icollection in webapi2/ one to many relationship?

Hi to all . I am very very new to webapi2 so i need a little help.MenuCategory has a public virtual ICollection Items ,and Items have a MenuCategoryID as foreign key, and in mvc view i can read them...

View Article

Tracking WebAPI per session

I have a webapi and the auth is token based.  The api is using .net core 2.0 and thinking of using idenityserver4 for the token auth.What we want to do is for each client that authenticates using their...

View Article


Postman - Multiple actions were found that match the request in Web Api

I have this webapi2 controller public class HomesController : ApiController , and i have created a customized action like this :[Route("api/Homes/GetDetails")] [HttpGet] public IHttpActionResult...

View Article

Export Data Table to CSV File

I am trying to create multiple CSV files from multiple tables in SQL Server DB back-end.The files are getting created but on the server and I do not get a Save As dialog in the browser. What do I have...

View Article


How to explain Web API is rest

when we search google what is rest then big theory comes but how could i explain point wise that web api is rest.please guide me.

View Article

Need some help with api usage

Hi Is there some document or eeading material that can explain why api and rest api was developed. Why were they required and what limitations were faced prior to them. I would like to understand more...

View Article

Dapper result to multiple class

Hi, I have class something similar to below, one parent has one child class collection (List Property) and that child collection has my single class object,list and string properties with in it.I am...

View Article
Browsing all 4850 articles
Browse latest View live


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