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
@eddyashton Would the URL scheme above work? There is an overload of /network/nodes/{id} and /network/nodes/self / /network/nodes/primary which in practice would be fine but I'm not sure if CCF has extra restrictions on that.
@letmaik These overloads should work correctly - in EndpointRegistry::find_endpoint(), we first look for an exact match if it exists (which will find /nodes/self and /nodes/primary), and only look for a templated match (/nodes/{id}) if we don't have an exact match. I don't think we have anything testing this currently, but it should work.
The network-related endpoints seem a bit random in their structure.
As a user I would have expected a hierarchical structure like:
/network
/network/nodes
"primary": true
?host=abc&port=444
/network/nodes/{id}
/network/nodes/self
307 Temporary Redirect
Location: /network/nodes/123
/network/nodes/primary
307 Temporary Redirect
Location: /network/nodes/456
While doing this, I would unify the response data models for nodes and not have different ones for non-primary and primary.
NOTE: is_primary (status code based) is still needed!
The text was updated successfully, but these errors were encountered: