You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DCX has a few downstream endpoints which has URL vars and headers which are constant for the entire application. We would love to be able to mark up the sysl in some way to have the generated code use the constants instead of the service code having to manually populate those values.
example:
Downstream:
/foo/{someid<:string}/xxx/{uuid<:string}/accounts/:
GET (login_flag <: string [~header, ~required, name="LOGIN_FLAG"], channel_id <: string [~header, ~required, name="CHANNEL_ID"]:
return ok <: FooDetails
I would like to tell sysl that the someid url var and the channel_id header are going to be constant values so they should not end up in the request struct and they should be hardcoded in the generated request.
The text was updated successfully, but these errors were encountered:
DCX has a few downstream endpoints which has URL vars and headers which are constant for the entire application. We would love to be able to mark up the sysl in some way to have the generated code use the constants instead of the service code having to manually populate those values.
example:
I would like to tell sysl that the
someid
url var and thechannel_id
header are going to be constant values so they should not end up in the request struct and they should be hardcoded in the generated request.The text was updated successfully, but these errors were encountered: