java110
2022-09-17 90d2e705b935359933802001a77acb8bdc71a50b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.java110.doc.controller;
 
 
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
 
import javax.servlet.http.HttpServletRequest;
 
@RestController
 
@RequestMapping(value = "/doc")
public class DocController {
 
    @RequestMapping(path = "/api", method = RequestMethod.GET)
    public ResponseEntity<String> html(
            HttpServletRequest request){
        return new ResponseEntity<>("<html></html>", HttpStatus.OK);
    }
 
    @RequestMapping(path = "/api/{resource}/{serviceCode}", method = RequestMethod.GET)
    public ResponseEntity<String> api( @PathVariable String resource,
                                       @PathVariable String serviceCode,
                                       HttpServletRequest request){
        return null;
    }
}