Service Calls
WireBootstrap contains functions to make calls to data services using jQuery's Ajax method.

Get

Use the asynchronous get function to get data from a data service using the HTTP GET method.
1
const data = await wire.get("https://data-service");
Copied!

GetWait

Use the synchronous getWait method to get data from a data service using the HTTP GET method. Note, this is a synchronous call and will hold up the processing thread on that line of code until the response comes back.
1
const data = wire.getWait("https://data-service");
Copied!

Post

Use the asynchronous post function to send data to a data service using the HTTP POST method. Use the second parameter to send the post payload.
1
const data = { UserName: "camici", FullName: "Chris Amici" };
2
3
await wire.post("https://data-service", data);
Copied!

PostWait

Use the synchronous postWait function to send data to a data service using the HTTP POST method. Use the second parameter to send the post payload. Note, this is a synchronous call and will hold up the processing thread on that line of code until the response comes back.
1
const data = { UserName: "camici", FullName: "Chris Amici" };
2
3
wire.postWait("https://data-service", data);
Copied!
Copy link