Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable default restli documentation #1969

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ project.ext.spec = [
'generator': 'com.linkedin.pegasus:generator:' + pegasusVersion,
'restliCommon' : 'com.linkedin.pegasus:restli-common:' + pegasusVersion,
'restliClient' : 'com.linkedin.pegasus:restli-client:' + pegasusVersion,
'restliDocgen' : 'com.linkedin.pegasus:restli-docgen:' + pegasusVersion,
'restliServer' : 'com.linkedin.pegasus:restli-server:' + pegasusVersion,
'restliSpringBridge': 'com.linkedin.pegasus:restli-spring-bridge:' + pegasusVersion,
]
Expand Down
1 change: 1 addition & 0 deletions gms/war/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dependencies {
runtime externalDependency.mysqlConnector
runtime externalDependency.postgresql

runtime spec.product.pegasus.restliDocgen
runtime spec.product.pegasus.restliSpringBridge
}

Expand Down
3 changes: 3 additions & 0 deletions gms/war/src/main/webapp/WEB-INF/beans.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
must be instantiated via spring and then passed into rest.li -->
<bean id="injectResourceFactory" class="com.linkedin.restli.server.spring.SpringInjectResourceFactory" />

<bean id="defaultDocumentationRequestHandler" class="com.linkedin.restli.docgen.DefaultDocumentationRequestHandler" />

<!--
In web.xml, HttpRequestHandlerServlet loads this "restliRequestHandler" spring bean as a servlet. For details, see:
http://static.springsource.org/spring-framework/docs/3.2.0.RC1/api/org/springframework/web/context/support/HttpRequestHandlerServlet.html
Expand All @@ -18,6 +20,7 @@
<constructor-arg>
<bean class="com.linkedin.restli.server.RestLiConfig">
<property name="resourcePackageNames" value="com.linkedin.metadata.resources" />
<property name="documentationRequestHandler" ref="defaultDocumentationRequestHandler" />
</bean>
</constructor-arg>
<constructor-arg ref="injectResourceFactory" />
Expand Down