Search in sources :

Example 1 with NotebooksApi

use of org.pmiops.workbench.notebooks.api.NotebooksApi in project workbench by all-of-us.

the class NotebooksConfig method notebooksApi.

@Bean
@RequestScope(proxyMode = ScopedProxyMode.DEFAULT)
public NotebooksApi notebooksApi(@Qualifier(NOTEBOOKS_CLIENT) ApiClient apiClient) {
    NotebooksApi api = new NotebooksApi();
    api.setApiClient(apiClient);
    return api;
}
Also used : NotebooksApi(org.pmiops.workbench.notebooks.api.NotebooksApi) RequestScope(org.springframework.web.context.annotation.RequestScope) Bean(org.springframework.context.annotation.Bean)

Aggregations

NotebooksApi (org.pmiops.workbench.notebooks.api.NotebooksApi)1 Bean (org.springframework.context.annotation.Bean)1 RequestScope (org.springframework.web.context.annotation.RequestScope)1