linkedin / rest.li

Rest.li is a REST+JSON framework for building robust, scalable service architectures using dynamic discovery and simple asynchronous APIs.
rest.li
Other
2.51k stars 546 forks source link

Introduce d2ServiceName annotation on rest.li resources #740

Closed karthikrg closed 2 years ago

karthikrg commented 2 years ago

This is an optional param that is meant to be populated by resources for whom the resource name is not the same as d2 service name (if not populated we default to null). This is useful for situations like generating routing hints for graphQL.

This value is also emitted into the IDL. Any changes to this value are considered backward incompatible.

mchen07 commented 2 years ago

Also, we need to expose this d2ServiceName into IDL so that graphql-infra can get this to generate into GraphQL schema.