0.0.4 • Published 4 years ago
@resller8/apis v0.0.4
APIS
APIS is a api project that uses Cypress to send request
Getting Started
Simply install via npm:
npm install @resller8/apis
Usage
Initialization
var xray = new apis(api_url, json_api, {
main, //main branch of json structure
ext, //sub branch of json structure
body, //body of request
auth //is authentication
)
JSON_API
{
"authorization":{
"get-accecss" : {
"method":"GET",
"api":"api/authenticate"
}
}
}
Trigger the request
xray.trigger().then((response) => {
})