Closed AlexKldnski closed 2 years ago
The following "it" block is added to "admin-user-creator.js" file. it('should delete a new User from database using RESTful API endpoint', async () => { const axios = require('axios') const data = JSON.stringify({ "userName": userNameValue }) const config = { method: 'delete', url: 'https://qa1.digabit.com/api/ext/user/v1', headers: { 'Authorization': 'Basic QVVUT01BVElPTjpkZTFmYWY5Mi0wMzZhLTRlNDMtODYxOS0wNDc2M2FlNTE2NzA=', 'Content-Type': 'application/json', 'Accept': 'application/json' }, data: data } await axios(config) .then(function (response) { console.log(response.status) console.log(response.config.method) console.log(response.config.url) console.log(response.config.data) }) .catch(function (error) { console.log(error) }) })
PR: https://github.com/documoto/rocket/pull/1307