package valandur.webapi.serialize.view.item;

import org.spongepowered.api.item.enchantment.Enchantment;
import org.spongepowered.api.item.enchantment.EnchantmentType;
import valandur.webapi.api.serialize.BaseView;

public class EnchantmentView extends BaseView<Enchantment> {

    public EnchantmentType enchantment;
    public int level;


    public EnchantmentView(Enchantment value) {
        super(value);

        this.enchantment = value.getType();
        this.level = value.getLevel();
    }
}

@@ -41,16 +41,106 @@
 tem;%0D%0A%0D%0A
+import io.swagger.annotations.ApiModel;%0D%0Aimport io.swagger.annotations.ApiModelProperty;%0D%0A
 import o
@@ -305,16 +305,42 @@
 iew;%0D%0A%0D%0A
+@ApiModel(%22Enchantment%22)%0D%0A
 public c
@@ -403,29 +403,46 @@
     
-public EnchantmentTyp
+@ApiModelProperty(%22The unique id of th
 e en
@@ -450,17 +450,23 @@
 hantment
-;
+ type%22)
 %0D%0A    pu
@@ -474,124 +474,329 @@
 lic 
-int level;%0D%0A%0D%0A%0D%0A    public EnchantmentView(Enchantment value) %7B%0D%0A        super(value);%0D%0A%0D%0A        this.enchantment =
+String getId() %7B%0D%0A        return value.getType().getId();%0D%0A    %7D%0D%0A%0D%0A    @ApiModelProperty(%22The name of the enchantment type%22)%0D%0A    public String getName() %7B%0D%0A        return value.getType().getTranslation().get();%0D%0A    %7D%0D%0A%0D%0A    @ApiModelProperty(%22The level of the enchantment%22)%0D%0A    public int getLevel() %7B%0D%0A        return
  val
@@ -801,20 +801,21 @@
 alue.get
-Type
+Level
 ();%0D%0A   
@@ -819,40 +819,83 @@
     
-    this.level = value.getLevel(
+%7D%0D%0A%0D%0A%0D%0A    public EnchantmentView(Enchantment value) %7B%0D%0A        super(value
 );%0D%0A

Add docs for EnchantmentView