Closed fasteddys closed 2 years ago
Good point... when your app is running and if you added OpenAPI to your application, you COULD grab the swagger.json
file to inspect.
I like your suggestion of adding something more native to the tool.
Great work BTW @csharpfritz
Is there a way to export
those endpoints to a Static Class
TestMenuHelper, I am trying to test harness to load that class and check the endpoints.
Something like this to expose the EndPoints... (or do you recommend switch over to Swashbuckle/Swagger Typscript for now)
function CallMethod(url, parameters, successCallback) {
//show loading... image
$.ajax({
type: 'POST',
url: url,
data: JSON.stringify(parameters),
contentType: 'application/json;',
dataType: 'json',
success: successCallback,
error: function(xhr, textStatus, errorThrown) {
console.log('error');
}
});
}
CallMethod(url, pars, onSuccess);
function onSuccess(param) {
//remove loading... image
//do something with the response
}
I do still like the logging option of this... creating a separate issue
Hello, is there an option to export the endpoints generated to a log or a
class
file for us to view orgenerate a menu
context, or generic Ajax caller