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
It should be possible to use an existing operation as a template to define other operations, much like a model can be used as a template for other models. For example:
@autoRoute
@doc("Get a {name}", TResource)
@get
@readsResource(TResource)
op ResourceRead<TResource>(
...ResourceInstanceParameters<TResource>
): TResource | ErrorResponse;
model Widget {
@key
id: string;
name: string;
}
op getWidget: ResourceRead<Widget>;
It should be possible to use an existing operation as a template to define other operations, much like a model can be used as a template for other models. For example:
See the full approved proposal here: #217 (comment)
The text was updated successfully, but these errors were encountered: