I have this XML API which required a username, password and order fields to be fulfilled.
How can I make a request to get the data from this API?
https://project.updevs.org/TestGetOrderByNumber.html
username: webapi
password: ghj123K
order: AZ106875-001161-4695223379-1
“Looking at the source of the link you provided, it seems the way your API works is it takes three values into an HTML form and then POSTs that off to the secondary file. You can mock that by sending an xhr to the secondary file in the form of an HTML form with your three values”
Look at the names for each input type, they are "user" "pass" and "order" from there use this link as a reference to mock your own form element to send, and what you should receive back is your XML
https://developer.mozilla.org/en-US/docs/Learn/Forms/Sending_forms_through_JavaScript