Package com.mangofactory.swagger.dummy.controllers

Source Code of com.mangofactory.swagger.dummy.controllers.ControllerWithNoRequestMappingService

package com.mangofactory.swagger.dummy.controllers;

import com.mangofactory.swagger.dummy.models.EnumType;
import com.mangofactory.swagger.dummy.models.Example;
import com.mangofactory.swagger.dummy.models.NestedType;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.util.UriComponentsBuilder;

@Controller
public class ControllerWithNoRequestMappingService {
  @RequestMapping(value = "/no-request-mapping", method = RequestMethod.GET)
  public ResponseEntity<Example> exampleWithNoRequestMapping(UriComponentsBuilder builder) {
    return new ResponseEntity<Example>(new Example("Hello", 1, EnumType.ONE, new NestedType("test")), HttpStatus.OK);
  }
}
TOP

Related Classes of com.mangofactory.swagger.dummy.controllers.ControllerWithNoRequestMappingService

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.