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
426 stars 88 forks source link

Management API does not find any Mails #31

Closed primus852 closed 3 years ago

primus852 commented 4 years ago

When running the FakeSMTP, receiving mails via WebUI works like a charm. However, when I check http://localhost:5081 I only get this:

{
  "timestamp":"2020-07-15T13:06:25.760+0000",
  "status":404,
  "error":"Not Found",
  "message":"No message available",
  "path":"/"
}

Is there something I am missing or is there a bug?

gessnerfl commented 4 years ago

@primus852 port 8081 is the management port which is basically used for monitoring purposes and health checks. It does not provide any API for managing mails. The management API is based on Spring Boot actuator. On the path /actuator you can get an overview of all available endpoints. More details about spring boot actuator can be found in the official Spring Boot Documentation: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready.

smuda commented 3 years ago

@primus852 Have a look at PR #32 where there is an API for retrieving emails.

gessnerfl commented 3 years ago

Closing the ticket after one month of activity. Rest controller is available on server port