I have a simple one html and main.js project. When the projects launches the script to create the request is also launched but we get a "405 - Method not allowed" response. We are trying this https://docs.microsoft.com/en-us/windows/uwp/xbox-apps/uwp-deployinfo-api API endpoint however we have tryed with other endpoints and we get 500 or again 405 errors.
The request is this one:
fetch('/ext/app/deployinfo', {
method: 'POST',
body: JSON.stringify({'DeployInfo': {'PackageFullName': 'xxxxxxxx-xxxx-xxxx-xxxxxx'}})
})
.then(
function (response) {
if (response.status !== 200) {
console.log('--- Petition Failure ---');
console.log('Status Code: ' + response.status);
return;
}
response.json().then(function (data) {
console.log('--- Petition Success ---');
console.log('Status Code: ' + response.status);
});
}
)
.catch(function (err) {
console.log('Fetch Error :-S', err);
});
We have also tried changing this same endpoint changing the method and we get a 500 error. Has someone tested this API? Thanks!