Open ThomasSeitzKoeln opened 2 years ago
@ThomasSeitzKoeln Please note that the postUpdate endpoint is experimental and isn't yet supposed to be used in production environments. We can't guarantee that there is no data loss when using it.
Since you're getting an internal server error, getting the error log messages from the server at the time such a request is sent would be necessary to figure out what the problem might be. Maybe @MartinWahnschaffe and @marius2301 can answer whether the format of the request seems fine in general.
@ThomasSeitzKoeln
You might be interested in this as it allows you to generate clients to the API in a language of your choice. More convenient than using curl
:)
@MartinWahnschaffe @marius2301 MateStrysewske mentioned you might now how to update cases in sormas via rest api. Would you please take a look at my problem description and help out? Thank you very much.
Hi @ThomasSeitzKoeln. I just had a look at this and have a few points that may cause the problem.
First of all: Ideally you would have access to the server log of the receiving server when experimenting with this. If that's not the case you could also setup a server on your local system for this. That's obviously nothing that you have to do, but it will make your live a lot easier if you can directly see what is going on.
The postUpdate method is meant to update existing entities. This has a few implications:
Hope that helps. Most likely point two will cause your problem. With the experimental version of the method you can just leave the changeDate parameter out and it should work.
Problem Description
While we are able to get case, person and sample data from the api, we are struggeling to update the cases in sormas after they have been edited in our system.
We are trying to post to /cases/postUpdate/{uuid} but all our tries have led to a Error 500 in response. One of the ways we tried is the following post request (sanitized test request):
How does a working post to this route have to look like?
Thank you for your feedback