Skip to content
This repository was archived by the owner on Feb 7, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion embedded-mysql/src/main/resources/platform-map.properties
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@ Windows_NT_(unknown)-x86=Win-x86
Windows_Server_2008-x86=Win-x86
Windows_Vista-amd64=Win-x86
Windows_2003-amd64=Win-x86
Windows_2000-amd64=Win-x86
Windows_2000-amd64=Win-x86
Windows_10-amd64=Win-x86
2 changes: 1 addition & 1 deletion junitBdd/src/it/basic-usage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.uniknow.agiledev.junitBDD</groupId>
<artifactId>basic-usage</artifactId>
<version>0.1.10-SNAPSHOT</version>
<version>0.1.15-SNAPSHOT</version>
<packaging>jar</packaging>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion maven-embedded-mysql/src/it/basic-usage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.uniknow.agiledev</groupId>
<artifactId>parent</artifactId>
<version>0.1.10-SNAPSHOT</version>
<version>0.1.15-SNAPSHOT</version>
</parent>

<groupId>org.uniknow.agiledev.support.maven-embedded-mysql</groupId>
Expand Down
4 changes: 2 additions & 2 deletions tutorials/rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<apiSources>
<apiSource>
<locations>
org.uniknow.agiledev.tutorial.rest.api.jaxrs.V1
org.uniknow.agiledev.tutorial.rest.api.jaxrs
</locations>
<schemes>http</schemes>
<host>[HOST]</host>
Expand All @@ -129,7 +129,7 @@
</configuration>
<executions>
<execution>
<phase>pre-site</phase>
<phase>compile</phase>
<goals>
<goal>generate</goal>
</goals>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ public interface BlogRestService {

@GET
@Path("/posts")
@ApiOperation("Returns all blog messages")
@ApiOperation("Returns all blog messages - version 1")
List<Post> getPosts();

@GET
@Path("/post/{id}")
@ApiOperation("Returns specified blog message")
@ApiOperation("Returns specified blog message - version 1")
Post getPost(@PathParam("id") int id);

@POST
@Path("/post")
@ApiOperation("Adds blog message")
@ApiOperation("Adds blog message - version 1")
Response addPost(Post post);

@DELETE
@Path("/post/{id}")
@ApiOperation("Removes blog message")
@ApiOperation("Removes blog message - version 1")
Response deletePost(@PathParam("id") int id);
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
package org.uniknow.agiledev.tutorial.rest.api.jaxrs.V2;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
Expand All @@ -59,17 +60,21 @@ public interface BlogRestService {

@GET
@Path("/posts")
@ApiOperation("Returns all blog messages - version 2")
List<Post> getPosts();

@GET
@Path("/post/{id}")
@ApiOperation("Returns specified blog message - version 2")
Post getPost(@PathParam("id") int id);

@POST
@Path("/post")
@ApiOperation("Adds blog message - version 2")
Response addPost(Post post);

@DELETE
@Path("/post/{id}")
@ApiOperation("Removes blog message - version 2")
Response deletePost(@PathParam("id") int id);
}