API POST Methods permissionDenied

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
evandropezzi
Posts: 4
Joined: Tue Oct 30, 2018 3:29 pm

API POST Methods permissionDenied

Post by evandropezzi » Tue Nov 06, 2018 3:26 pm

Hello,

I'm trying to use the API docs to understand the Methods.
So i'm testing same methods with the button "Try it out!" and the GET methods it's working. But all the POST methods are returning code 403 (permissionDenied).

I'm using my login and password, and the api generate the authorization line in the header (Authorization: Basic ZXZhbmRyb3BheW9uOnBheW9uMTIz). I don't know if it is correct.

Can someone help me please?

Tks.
Evandro.

jalcfer
Posts: 3
Joined: Thu Sep 27, 2018 6:02 pm

Re: API POST Methods permissionDenied

Post by jalcfer » Thu Nov 15, 2018 1:44 pm

hello, what methods are you trying to test and what user and password are you using? remember in the page https://demo.cyclos.org/api#/ you need to create an user in the page https://demo.cyclos.org/ and test the methods with that user or use the demo user:

Demo user

You can login with the pre-configured demo account:
User: demo
Password: 1234

Some examples of customized layouts can be seen logging in with the users:
Users: demo2, demo3
Password (for both users): 1234

i'm developing a react-native app and that page are very useful.

Jaime Alberto

evandropezzi
Posts: 4
Joined: Tue Oct 30, 2018 3:29 pm

Re: API POST Methods permissionDenied

Post by evandropezzi » Mon Nov 19, 2018 8:54 am

Hello Jaime,

I just used the authorization method first and works.

I'm developing an angular frontend.

tks.
Evandro

Post Reply