Commit 09cfae29 authored by granier's avatar granier
Browse files

suppression tags et dépendance swagger-annotations

parent 0a508342
......@@ -41,12 +41,6 @@
<version>4.0.0-M2</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.5.20</version>
</dependency>
<!--End of Jaxb API and it's implementation and dependencies- Java11-->
<dependency>
......
......@@ -52,9 +52,9 @@ import fr.gouv.vitamui.pastis.util.PastisSAX2Handler;
import fr.gouv.vitamui.pastis.util.PuaPastisValidator;
import fr.gouv.vitamui.pastis.util.pua.NoticeFromPUA;
import fr.gouv.vitamui.pastis.util.pua.PuaFromJSON;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.json.JSONObject;
import org.json.JSONTokener;
......@@ -86,7 +86,7 @@ import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
@Api(tags = "pastis")
@OpenAPIDefinition(tags = @Tag(name="pastis"))
@RestController
class ProfileController {
......@@ -119,7 +119,6 @@ class ProfileController {
private List<PastisProfile> pastisProfiles = new ArrayList<>();
@ApiOperation(value = "Simple API test endpoint")
@RequestMapping(value = "/test", method = RequestMethod.GET)
String test() {
return "Pastis API is listening...";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment