Being an open source project, Kapua is an ever evolving software that can happen to have bugs from time to time. Specifically, the current OpenAPI specification for the REST APIs contains
a few issues on the data formats, that will be fixed in Kapua 1.2.0. That’s why SwaggerUI asks you for a string array, but as I already said, you have to pass the password as a string.
To get data from REST APIs you want to use the Data Message endpoints.
Claudio Mezzasalma | Eurotech
Da: <kapua-dev-bounces@xxxxxxxxxxx> per conto di "ramraj.shankar@xxxxxxxx" <ramraj.shankar@xxxxxxxx>
Risposta: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Data: giovedì 12 marzo 2020 05:08
A: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Oggetto: Re: [kapua-dev] Client Command
I passed the password the way it was given.
How exactly should I make a client to extract data via API?
On Mar 11, 2020 9:31 PM, "Mezzasalma, Claudio" <Claudio.Mezzasalma@xxxxxxxxxxxx> wrote:
You should pass the password as a string, not as a string array. Also, for further reference, you can usually find more details about errors in the Docker containers logs
Claudio Mezzasalma | Eurotech
Da: <kapua-dev-bounces@xxxxxxxxxxx> per conto di "Shankar, Ramraj" <Ramraj.Shankar@xxxxxxxx>
Risposta: kapua developer discussions <kapua-dev@xxxxxxxxxxx>
Data: mercoledì 11 marzo 2020 14:56
A: "kapua-dev@xxxxxxxxxxx" <kapua-dev@xxxxxxxxxxx>
Oggetto: [kapua-dev] Client Command
Hello,
I am getting the error shown in the attachment when I run the client code command.
Also I am getting error 500 when I run : curl -X POST
'http://localhost:8081/v1/authentication/user' --header
'Content-Type: application/json' --header
'Accept: application/json' -d
'{
"password": [
"kapua-password"
],
"username": "kapua-sys"
}'
Could you please help me?