janjaali / sendGrid-mock

SendGrid-Mock serves as a simple server mocking the sendgrid-apis for development purposes.
https://cloud.docker.com/repository/docker/ghashange/sendgrid-mock/general
MIT License
48 stars 19 forks source link

x-message-id #47

Closed milannikic-sh closed 1 year ago

milannikic-sh commented 1 year ago

Is it possible to add x-message-id to the response header for the POST (/mail/send) endpoint? Explanation of that field is here: https://docs.sendgrid.com/glossary/what-is-x-message-id

janjaali commented 1 year ago

Sure! Guess it is sufficient enought to start with a random UUID as returned x-message-id for now. Real uniqueness of returned x-message-id or message-id is probably out of scope for this mock server project.

milannikic-sh commented 1 year ago

Thanks. Of course UUID is sufficient - just to have something in the header under the x-message-id key.

janjaali commented 1 year ago

Added in https://github.com/janjaali/sendGrid-mock/releases/tag/v1.8.2 ;)