Commit 98eec389 authored by Bert T.'s avatar Bert T.

Add page vanity urls/slugs

parent dfb45273
......@@ -5,7 +5,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</parent>
<artifactId>CubedPay-bukkit</artifactId>
......@@ -21,7 +21,7 @@
<dependency>
<groupId>co.melondev</groupId>
<artifactId>CubedPay-common</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
......
......@@ -5,7 +5,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</parent>
<artifactId>CubedPay-bungeecord</artifactId>
......@@ -21,7 +21,7 @@
<dependency>
<groupId>co.melondev</groupId>
<artifactId>CubedPay-common</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
......
......@@ -6,7 +6,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</parent>
<artifactId>CubedPay-common</artifactId>
......
......@@ -123,10 +123,10 @@ public interface CubedPayShopAPI {
CompletableFuture<ShopPage> getPage(@Path("sid") String shopId, @Path("pid") String pageId);
@POST("/shop/{sid}/page")
CompletableFuture<ShopPage> createPage(@Path("sid") String shopId, @Query("name") String name, @Query("description") String description, @Query("public") boolean isPublic, @Query("type") ShopPage.Type type, @Query("display") ShopPage.Display display, @Query("order") int order, @Query("meta") String pageMeta);
CompletableFuture<ShopPage> createPage(@Path("sid") String shopId, @Query("name") String name, @Query("slug") String vanityUrl, @Query("description") String description, @Query("public") boolean isPublic, @Query("type") ShopPage.Type type, @Query("display") ShopPage.Display display, @Query("order") int order, @Query("meta") String pageMeta);
@PATCH("/shop/{sid}/page/{pid}")
CompletableFuture<ShopPage> updatePage(@Path("sid") String shopId, @Path("pid") String pageId, @Query("name") String name, @Query("description") String description, @Query("public") boolean isPublic, @Query("type") ShopPage.Type type, @Query("display") ShopPage.Display display, @Query("order") int order, @Query("meta") String pageMeta);
CompletableFuture<ShopPage> updatePage(@Path("sid") String shopId, @Path("pid") String pageId, @Query("name") String name, @Query("slug") String vanityUrl, @Query("description") String description, @Query("public") boolean isPublic, @Query("type") ShopPage.Type type, @Query("display") ShopPage.Display display, @Query("order") int order, @Query("meta") String pageMeta);
@DELETE("/shop/{sid}/page/{pid}")
CompletableFuture<DeleteConfirmation> deletePage(@Path("sid") String shopId, @Path("pid") String pageId);
......
......@@ -59,6 +59,7 @@ public class ShopPage {
private String id;
private String name;
private String slug;
private String description;
@SerializedName("public")
private boolean isPublic;
......@@ -76,6 +77,10 @@ public class ShopPage {
return name;
}
public String getSlug() {
return slug;
}
public String getDescription() {
return description;
}
......
......@@ -4,7 +4,7 @@
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
<packaging>pom</packaging>
<properties>
......
......@@ -5,7 +5,7 @@
<parent>
<groupId>co.melondev</groupId>
<artifactId>CubedPay</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</parent>
<artifactId>CubedPay-sponge</artifactId>
......@@ -21,7 +21,7 @@
<dependency>
<groupId>co.melondev</groupId>
<artifactId>CubedPay-common</artifactId>
<version>0.6.1</version>
<version>0.6.2</version>
</dependency>
<dependency>
<groupId>org.spongepowered</groupId>
......
......@@ -19,7 +19,7 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
@Plugin(id = "cubedpayplugin", name = "CubedPayPlugin", version = "0.6.1", authors = {"Melon Development"}, url = "https://cubedpay.com/")
@Plugin(id = "cubedpayplugin", name = "CubedPayPlugin", version = "0.6.2", authors = {"Melon Development"}, url = "https://cubedpay.com/")
public class CubedPayPlugin {
private static CubedPayAPI api;
......
Markdown is supported
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