%% Specify Web Service Query Parameters
% This example shows how to select a record using query parameters.
%% View Employee Database Structure
% Display the fields of database employee.

httpsUrl = "https://requestserver.mathworks.com";
employeeUrl = strcat(httpsUrl, "/employee");
fieldnames(webread(employeeUrl))

%
%% Select Employee by firstName and lastName

jSmith = webread(employeeUrl, "firstName", "John", "lastName", "Smith");
disp(jSmith);

% Copyright 2020 The MathWorks, Inc.