-
I am trying out a version of Quotes application where, the Kafka topic is populated by an upstream DSL application. Further, the messages are JSON objects. When I access the end-point in Postman, I see a message as Can you please advise what am I missing? This is my application. @Path("/events")
public class ApplicationStreamer {
@Channel("application-events")
Multi<ApplicationEvent> applicationEvent;
@GET
@Produces(MediaType.SERVER_SENT_EVENTS)
public Multi<ApplicationEvent> stream() {
return applicationEvent;
}
} This is my model. public class ApplicationEvent {
public JsonObject applicationEvent;
/**
* Default constructor required for Jackson serializer
*/
public ApplicationEvent() {
}
public ApplicationEvent(JsonObject me) {
this.applicationEvent = me;
}
// @Override
// public String toString() {
// return applicationEvent.encode();
// }
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
/cc @Ladicek, @alesj, @cescoffier, @jmartisk, @ozangunalp, @phillip-kruger, @radcortez |
Beta Was this translation helpful? Give feedback.
-
This is a Postman bug postmanlabs/postman-app-support#6682 ;browser shows events. |
Beta Was this translation helpful? Give feedback.
This is a Postman bug postmanlabs/postman-app-support#6682 ;browser shows events.