Dear Team,
I have a web api -
How do I make an Angular Project in Visual Studio 2017, and write the code to display the contents of the Web API?
Please guide on this.
Dear Team,
I have a web api -
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Feb 28, 2021, 3:37 PM
Riddhi ValechaPosted Feb 28, 2021, 3:05 PM
Riddhi ValechaPosted Feb 11, 2021, 8:36 AM
Riddhi ValechaPosted Feb 10, 2021, 7:36 PM
Riddhi ValechaPosted Feb 10, 2021, 10:14 AM
Riddhi ValechaPosted Feb 8, 2021, 6:19 PM
Pending Assets List
Rijwan AnsariPosted Feb 2, 2021, 3:27 PM
Rijwan AnsariPosted Feb 2, 2021, 3:22 PM
Riddhi ValechaPosted Feb 2, 2021, 3:06 PM
Riddhi ValechaPosted Feb 2, 2021, 1:28 PM
Rijwan AnsariPosted Jan 28, 2021, 11:27 AM
Riddhi ValechaPosted Jan 28, 2021, 10:49 AM
Hello Team,
Do anyone know -
Riddhi ValechaPosted Jan 27, 2021, 8:52 AM
Hello Team,
I am not getting results in asp.net c# Simple code aslo.
{
string resulat = "";
string strUrl = "";
try
{
strUrl = "http://";
strUrl = string.Format(strUrl);
{
String userName = "123";
String passWord = "123";
string credentials = Convert.ToBase64String(Encoding.ASCII.GetBytes(userName + ":" + passWord));
WebRequest requestobjPost = WebRequest.Create(strUrl);
requestobjPost.Method = "GET";
requestobjPost.ContentType = "application/xml";
requestobjPost.Credentials = new NetworkCredential("123", "123");
requestobjPost.Headers[HttpRequestHeader.Authorization] = "BasicAuth"+credentials;
var HttpResponce = requestobjPost.GetResponse();
using (var StreamReader = new StreamReader(HttpResponce.GetResponseStream()))
{
resulat = StreamReader.ReadToEnd();
}
else if (strUrl == "")
{
resulat = "Bad Request";
}
catch (Exception err) { err.Message.ToString(); return null; }
return resulat;
}
import { HttpClient } from '@angular/common/http';
import xml2js from 'xml2js';
import { HttpHeaders } from '@angular/common/http';
selector: 'app-pendingassets.component',
templateUrl: './pendingassets.component.html',
styleUrls: ['./pendingassets.component.css']
})
public pendingasset: pendassets[];
constructor(http: HttpClient, @Inject('BASE_URL') baseUrl: string) {
http.get
this.pendingasset = result;
}, error => console.error(error));
}
}
interface pendassets {
ComputerComputerType: string;
ModelBrandName: string;
ModelName: string;
ComputerTcpIpHostName: string;
AssetSerialNo: string;
UserUserName: string;
RIL_Inventoried_UserUserName: string;
AssetField1: string;
}
Jignesh KumarPosted Jan 9, 2021, 7:10 AM
Nikunj SatasiyaPosted Jan 9, 2021, 6:19 AM
Riddhi ValechaPosted Jan 8, 2021, 8:37 AM
I have Web APIs - whose output I get in XML.
How to Convert XML output to datatable and display data in Angular ?
Kiran MohantyPosted Dec 11, 2020, 5:21 AM
Sachin SinghPosted Dec 11, 2020, 4:22 AM
Riddhi ValechaPosted Dec 11, 2020, 4:14 AM
Hello sir,
This link is for making API.
Salman BegPosted Nov 20, 2020, 10:07 PM