Merge pull request #3221 from nats-io/direct

Made direct get from a stream part of the $JS.API hierarchy vs separate.
This commit is contained in:
Derek Collison
2022-06-28 09:59:44 -07:00
committed by GitHub
5 changed files with 102 additions and 10 deletions

View File

@@ -121,8 +121,11 @@ const (
// JSDirectMsgGet is the template for non-api layer direct requests for a message by its stream sequence number or last by subject.
// Will return the message similar to how a consumer receives the message, no JSON processing.
// If the message can not be found we will use a status header of 404. If the stream does not exist the client will get a no-responders or timeout.
JSDirectMsgGet = "$JS.DS.GET.*"
JSDirectMsgGetT = "$JS.DS.GET.%s"
JSDirectMsgGet = "$JS.API.DIRECT.GET.*"
JSDirectMsgGetT = "$JS.API.DIRECT.GET.%s"
// jsDirectGetPre
jsDirectGetPre = "$JS.API.DIRECT.GET"
// JSApiConsumerCreate is the endpoint to create ephemeral consumers for streams.
// Will return JSON response.