Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
0d70b27653
|
|||
|
673ba03f2b
|
|||
| f6255d396c | |||
|
26cea1db82
|
|||
| 8f102f54c7 | |||
| d3681916b2 |
@@ -0,0 +1,26 @@
|
|||||||
|
package com.onixbyte.deltaforceguide.config;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
|
||||||
|
import io.swagger.v3.oas.annotations.info.Contact;
|
||||||
|
import io.swagger.v3.oas.annotations.info.Info;
|
||||||
|
import io.swagger.v3.oas.annotations.info.License;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@OpenAPIDefinition(
|
||||||
|
info = @Info(
|
||||||
|
title = "Delta Force Guide Server",
|
||||||
|
description = "API for managing Delta Force game firearm builds",
|
||||||
|
version = "1.3.4",
|
||||||
|
contact = @Contact(
|
||||||
|
name = "Zihlu Wang",
|
||||||
|
email = "zihlu.wang@onixbyte.com"
|
||||||
|
),
|
||||||
|
license = @License(
|
||||||
|
name = "MIT",
|
||||||
|
url = "https://git.onixbyte.cn/onixbyte/delta-force-guide-server/-/raw/main/LICENCE"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
@Configuration
|
||||||
|
public class OpenApiConfiguration {
|
||||||
|
}
|
||||||
@@ -2,10 +2,12 @@ package com.onixbyte.deltaforceguide.controller;
|
|||||||
|
|
||||||
import com.onixbyte.deltaforceguide.service.AppService;
|
import com.onixbyte.deltaforceguide.service.AppService;
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@Tag(name = "版本信息")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/versions")
|
@RequestMapping("/versions")
|
||||||
public class VersionController {
|
public class VersionController {
|
||||||
|
|||||||
Reference in New Issue
Block a user