gessnerfl / fake-smtp-server

A simple SMTP Server for Testing purposes. Emails are stored in an in-memory database and rendered in a Web UI
Apache License 2.0
440 stars 90 forks source link

Strange behaviour when querying mail using the REST-API #591

Open wtldev opened 1 month ago

wtldev commented 1 month ago

I have written a Java program in order to fetch mails via REST-Api by filtering mails using the receivedOn property. If I use exactly the same filter properties I get diefferent results using Swagger UI and my java program. In case of using the SaggerUI I fetch the mail, in the other case the result is empty ?

{ "filter": { "type": "greater_than", "property": "receivedOn", "value": "2024-10-08T10:10:14.968585Z" }, "page": 0, "size": 500, "sort": { "orders": [ { "property": "id", "direction": "ASC" } ] } }

gessnerfl commented 2 weeks ago

@wtldev can you please share more details how you try to access the API? Can you provide a code snippet for example? The issue might be related to missing HTTP headers.