#Role Listing 404?

1 messages · Page 1 of 1 (latest)

tame ice
#

Hey there. I'm having issues using CtrlPanelGG's api. I'm using the documentation from postman. This is my code:

var axios = require('axios');

var config = {
  method: 'get',
  maxBodyLength: Infinity,
  url: 'https://dash.something.xyz/api/roles/',
  headers: { Authorization: "nothing4u" }
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});

When i executed the code, it said 404. How can I fix this?

tame ice
#

thats literally what im using

west thicket
#

Roles do not exist in version 0.9.x, they will only be available from version 0.10

tame ice
#

How can I update it to 0.10? The latest release is 0.9.7

west thicket
tame ice
#

So it would be under the development branch correct?

west thicket
#

Yeah

#

But we strongly do not recommend using it as the main version, it may contain critical errors and vulnerabilities. This version has not been fully tested

tame ice
#

Then I have a different question; does stripe give the person who buys a product the client role?

#

Or for 0.9.x it doesn't do anything?

west thicket
#

The user gets the client role as soon as he makes a purchase in the store. It does not depend on the payment gateway.

tame ice
#

Would I have to list all the users to get all the roles?

tame ice
#

Alright.

west thicket
#

In 0.9.x there is only 4 roles: Member, Client, Moderator and Administrator

#

Whereas in 0.10, custom roles will be available, with custom permissions