Skip to content

Add config panel to modify host and header params.

Notifications You must be signed in to change notification settings

plftzk/apidoc-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

apidoc-template

Add config panel to modify request host and header params.

const auth_data = JSON.stringify({username: 'jackson', password: '123456'});
// request auth info.
$.ajax({
    url: 'http://localhost/login',
    method: 'post',
    data: auth_data,
    ContentType: "application/json",
    type: 'json',
    dataType: 'json',
    success(resp) {
        if (resp.errcode === 0) {
            $('input[data-name="token"]').val(resp.data.token);
            docInitCallbackFunc(); //  * Need to keep!!!
        }
    }
});`

About

Add config panel to modify host and header params.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published