Learn Custom Method In Asp.Net Web API Testing In Talend , GET method in Asp.Net Web API

Опубликовано: 09 Январь 2020
на канале: Manoj Kalla
34
0

Overview of Custom GET Method in Asp.Net Web API,
Learn Custom Method (GET Method) In Asp.Net Web Api and Testing Talend API Tester Chrome Extension, How to test Asp.Net Web API using Talend API Tester
****************************
SOURCE CODE
****************************

=============================
SQL TABLE SCRIPT
=============================
CREATE TABLE [dbo].[tblFriends](
[FriendID] [int] IDENTITY(1,1) NOT NULL,
[FriendName] [varchar](100) NULL,
[PhoneNumber] [varchar](50) NULL,
[EmailID] [varchar](100) NULL,
[Country] [varchar](100) NULL,
[DOB] [DateTime] NULL,
[IsMarried] [bit] NULL,
[SalaryPerAnnum] [numeric](10) NULL,
PRIMARY KEY CLUSTERED
(
[FriendID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

==============================
INSERT QUERIES
==============================
insert into tblFriends values ('Suresh Vyas','98612134512','sureshvyas@zohax.com','India',1990/01/01,1,450000)

insert into tblFriends values ('Manoj Kalla','9869166077','manojkalla@hotmail.com','India',1980/02/05,1,950000)

insert into tblFriends values ('Kamlesh Goenka','981916607','kamleshgoenka@hotail.com','India',1970/02/06,1,750000)

insert into tblFriends values ('Prashant Bansal','781214607','prashantbansal@soril.com','US',1989/01/04,01,250000)

insert into tblFriends values ('Nitin Tiwari','811012607','nitin@indl.com','US',1992/01/04,0,350000)

insert into tblFriends values ('Mahesh Jadhav','921052607','mahesh@utsavl.com','US',1998/01/06,0,42000)

===========================
WEB API CODE
===========================
[HttpGet]

[Route("api/FriendListMsg")]

public HttpResponseMessage GetFriendList()

{
MbkTestDataClassesDataContext db = new MbkTestDataClassesDataContext();
var FriendList = (from a in db.tblFriends select a).ToList();

return Request.CreateResponse(HttpStatusCode.OK, FriendList);

}


Смотрите видео Learn Custom Method In Asp.Net Web API Testing In Talend , GET method in Asp.Net Web API онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Manoj Kalla 09 Январь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 34 раз и оно понравилось 0 людям.