SystemInfoController.java
package edu.ucsb.cs156.gauchoride.controllers;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import edu.ucsb.cs156.gauchoride.models.SystemInfo;
import edu.ucsb.cs156.gauchoride.services.SystemInfoService;
/**
 * SystemInfoController returns information about the application; typically
 * the values of environment variables that may be needed by the frontend.
 */
@Tag(name = "System Information")
@RequestMapping("/api/systemInfo")
@RestController
public class SystemInfoController extends ApiController {
    @Autowired
    private SystemInfoService systemInfoService;
    @Operation(summary = "Get global information about the application")
    @GetMapping("")
    public SystemInfo getSystemInfo() {
        return systemInfoService.getSystemInfo();
    }
}