blob: 20ca056595ece6cf23ae1a43ef3437d99783377c [file] [log] [blame]
Konstantinos Kanonakis0c374482017-01-18 15:03:47 -06001/*
2 * Copyright 2016-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.mefscaapi;
17
18import org.apache.felix.scr.annotations.Component;
19import org.onosproject.rest.AbstractApiDocRegistrator;
20import org.onosproject.rest.ApiDocProvider;
21
22// Usually onos-maven-plugin generates swagger.json and generate equivalent.
23// But this app is generated "from" swagger, so equivalent is not auto-generated
24// by the plugin. Manually creating one.
25@Component(immediate = true)
26public class ApiDocRegistrator extends AbstractApiDocRegistrator {
27 public ApiDocRegistrator() {
28 // sync with pom.xml web.context
29 super(new ApiDocProvider("/onos/mef-sca-api",
30 "MEF SCA REST API",
31 ApiDocRegistrator.class.getClassLoader()));
32 }
33}