Class AdminController

java.lang.Object
com.Server.controller.AdminController

@RequestMapping("/admin")
@RestController
@CrossOrigin
@Configuration
@EnableSwagger2
public class AdminController
extends java.lang.Object
Admin Controller used to Test whether Server is correct work.
Since:
2020-04-27.
Version:
2.0.
Author:
Krystian Cwioro Kamil Bieniasz Damian Mierzynski.
  • Constructor Summary

    Constructors
    Constructor Description
    AdminController()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getAbout()
    This is method is use to return about of company to client.
    java.lang.String getString()
    This is method is use to check correct work server.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AdminController

      public AdminController()
  • Method Details

    • getString

      @GetMapping("/test") public java.lang.String getString()
      This is method is use to check correct work server. This method use endpoint /admin/test
      Returns:
      Text hello where server is working Http.Status 200.
    • getAbout

      @GetMapping("/about") public java.lang.String getAbout()
      This is method is use to return about of company to client. This method use endpoint /admin/about
      Returns:
      Text about company to client Http.Status 200.