Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [kapua-dev] API Link not working!

Hi Pedro,

Okay. Makes sense. Thank you very much.

How do I use the API to publish the data on my website (front-end)?


Thanks & Regards,
Ram. 

From: kapua-dev-bounces@xxxxxxxxxxx [kapua-dev-bounces@xxxxxxxxxxx] on behalf of Pedro de Arquer [pedro.arquer@xxxxxxxxx]
Sent: 12 June 2020 08:38
To: kapua developer discussions
Subject: Re: [kapua-dev] API Link not working!

Hi Ramraj,

When you say "open" do you mean in a web browser? That endpoint only accepts POST requests filled as described in the documentation of the API. You can perform that request with swagger as you show in your first email. The web browser always makes a GET request so there is no way that is going to work. That's why you receive the Method Not Allowed error. Anyway, after that request, you will need the authentication in the header of the request for the rest of the endpoints so the web browser will be of no help to you. Either you use the Swagger interface or I suggest you a software such as Postman if you want to explore the behaviour of the API.

Kind regards,

Pedro

El jue., 11 jun. 2020 a las 13:42, Shankar, Ramraj (<Ramraj.Shankar@xxxxxxxx>) escribió:
Dear Pedro,

Thank you, it worked.

But when I try open the http://localhost:8081/v1/authentication/user, I am getting an error:

{"httpErrorCode":500,"message":"HTTP 405 Method Not Allowed"}

Please guide me in this.



Dear Claudio,

I am using version 1.2.



Thanks & Regards,
Ram.
________________________________________
From: kapua-dev-bounces@xxxxxxxxxxx [kapua-dev-bounces@xxxxxxxxxxx] on behalf of Mezzasalma, Claudio [Claudio.Mezzasalma@xxxxxxxxxxxx]
Sent: 11 June 2020 09:10
To: kapua developer discussions
Subject: Re: [kapua-dev] API Link not working!

Are you sure you're using 1.2.0? The issue is that kapua-password is a string, not an array of string, but this should have been fixed a while ago. Can you please double check your version?
--
Claudio Mezzaslma | Eurotech

Il giorno 11 giu 2020, alle ore 08:45, Pedro de Arquer <pedro.arquer@xxxxxxxxx<mailto:pedro.arquer@xxxxxxxxx>> ha scritto:

Hi,

I'm not sure if this will fix your problem good enough, but you should send the password field as plain text, instead of array.

After that, you must fill the Authorization with the tokenId you receive:
<imagen.png>

->
<imagen.png>

Kind regards,

Pedro

El mié., 10 jun. 2020 a las 20:41, Shankar, Ramraj (<Ramraj.Shankar@xxxxxxxx<mailto:Ramraj.Shankar@xxxxxxxx>>) escribió:
Hello Pedro,

Thank you for your reply.

I ma using Docker. I had used the earlier version. Now I am using version 1.2 and I am able open the link.
But I am getting an error which is shown in the attachment picture.

And which tokenId do I copy to paste as api_key?


Thanks & Regards,
Ram

________________________________________
From: kapua-dev-bounces@xxxxxxxxxxx<mailto:kapua-dev-bounces@xxxxxxxxxxx> [kapua-dev-bounces@xxxxxxxxxxx<mailto:kapua-dev-bounces@xxxxxxxxxxx>] on behalf of Pedro de Arquer [pedro.arquer@xxxxxxxxx<mailto:pedro.arquer@xxxxxxxxx>]
Sent: 10 June 2020 19:26
To: kapua developer discussions
Subject: Re: [kapua-dev] API Link not working!

Hi Ramraj,

Are you sure Kapua API is up? How are you deploying it: Docker, OpenShift...?

Kind regards,

Pedro

El mié., 10 jun. 2020 a las 18:12, Shankar, Ramraj (<Ramraj.Shankar@xxxxxxxx<mailto:Ramraj.Shankar@xxxxxxxx><mailto:Ramraj.Shankar@xxxxxxxx<mailto:Ramraj.Shankar@xxxxxxxx>>>) escribió:
Hello,

The link for API (http://localhost:8081/doc/) given in the GitHub si te is not working.

Please guide me in using the API endpoints.


Regards,
Ram
_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx<mailto:kapua-dev@xxxxxxxxxxx><mailto:kapua-dev@xxxxxxxxxxx<mailto:kapua-dev@xxxxxxxxxxx>>
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/kapua-dev
_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx<mailto:kapua-dev@xxxxxxxxxxx>
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/kapua-dev
_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx<mailto:kapua-dev@xxxxxxxxxxx>
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/kapua-dev

_______________________________________________
kapua-dev mailing list
kapua-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/kapua-dev

Back to the top