Getting error message while doing API testing

Hi Friends,

I am getting the below error message is displaying when i execute the API testing. Need help on this.

API URL :
I.sendDeleteRequest('https://api.trello.com/1/boards/?name=codeceptjssss&key=4bb074f497d713ed5919599cc7247c06&token=72a28bc701ef2c3b8a353fff47253e1bd9a2f19f5f317e744f7ba0e5229181a2 ');

Error message : I.sendDeleteRequest is not a function

Hi, could you share your config please?

Hi Ufko,

this is i give in the config file for Rest.

Config File :
REST: {
endpoint: ‘https://api.trello.com’,

},

Is it under helpers?

image

No… It;s not under helpers…

Config file :

exports.config = {
tests: ‘./*_test.js’,
output: ‘./output’,
helpers: {
WebDriver: {
url: ‘https://trello.com/’,
browser: ‘chrome’
}
},

REST: {
endpoint: ‘ttps://api.trello.com’,

},

@prem you need to move REST inside the helpers property .

@paulb bingo! Many people put the helpers, plugins in wrong place :slight_smile:

@prem you don’t need WebDriver helper if you just play around with REST

@peterngtr then we should improve docs, the actual example does not show the context https://codecept.io/helpers/REST#example

@paulb would you mind make a PR? I also have my REST demo https://github.com/PeterNgTr/codeceptjs-rest-demo

thnx paulb… for providing the information… Now it’s working…

thnx peterngtr… for providing the information…