I have this curl.
curl -H "Content-Type: application/json" -X POST -d '{"file_server": {"method": "api/file", "parameter": [{"filepath":"tehnnhjhst", "FileBase64String":"test"}]}}' http://localhost:4000/api/some_method
But I got this JSON response:
{"errors":{"parameter":["is invalid"]}}
This is my model
schema "some_method" do
field :method, :string
field :parameter, :string
timestamps()
end
I just wanted to store the array as plain text/string to my MySql database.
Is there parse equivalent to this? or?
Any idea? Thank you.






















