Commit ebf19ebf authored by MeesterWaffles's avatar MeesterWaffles
Browse files

endpoint and gui

parent 77ee4ed8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ public class MLRestController {
    @PostMapping(value = "/restCTSQueryDocShow")
    public ResponseEntity<ArrayList<ConfidenceFitness>> restQueryCTSDocShow(@RequestParam("cts_query_string") String cts_query_string)
    {

    }

    @GetMapping(value = "/restQueryDoc", produces = MediaType.APPLICATION_JSON_VALUE)
+56 −0
Original line number Diff line number Diff line
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="utf-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1"/>
        <link rel="stylesheet" href="/css/bootstrap.min.css"/>
        <link rel="stylesheet" href="/css/header.css"/>
        <style>
            .input-group {
                margin-top: 20px;
            }
            .input-group-addon{
                font-size:1.1em; 
                font-weight: bold;
            }
            td, th {
                border: 1px solid #000001;
                padding: 1px;
                text-align: center;
            }
            table {
                padding: 0px;
                border-spacing: 0px;
                width: 100%;
            }          
        </style>
    </head>
    <body>
        <div class="container" style="margin-top: 50px">
            <h1>Query Doc</h1>
            <div class="form-group" style="font-size:1.2em; margin-top: 20px;">
                <form method="GET" action="/restReadDoc" id="fileUploadForm">
                    <div class="input-group">
                        Query String: <input type="text" class="form-control" name="query_string" id="query_string" />

                    </div>
                    <div class="form-group" style="margin-top: 30px">
                        <input type="submit" class="btn btn-primary" value="  Submit  " id="btnSubmit" />
                    </div>    
                </form>           
            </div>   
            <div id="result">

            </div>
        </div>
        <script src="/js/jquery-1.12.4.js"></script>
        <script src="/js/jquery-ui.js"></script>
        <script src="/js/bootstrap.min.js"></script>
        <script src="/js/restQueryDoc.js"></script>   
    </body>
</html>