// Path: wordnet-response/src/main/java/com/apitore/banana/de/sciss/ws4j/common/PosDef.java
// public enum PosDef {
//   n ("n","noun"),
//   v ("v","verb"),
//   a ("a","adjective"),
//   r ("r","adverb");
// 
//   private final String id;
//   private final String description;
//   private PosDef(final String id, final String description) {
//     this.id = id;
//     this.description = description;
//   }
//   public String getId() {
//     return id;
//   }
//   public String getDescription() {
//     return description;
//   }
// 
// }


import java.util.HashMap;
import java.util.Map;
import org.springframework.web.client.RestTemplate;
import com.apitore.banana.de.sciss.ws4j.common.PosDef;
import com.apitore.banana.response.de.sciss.ws4j.WordResponseEntity;
import com.apitore.banana.utils.UrlFormatter;
package com.apitore.banana.response.de.sciss.ws4j.sample;






/**
 * @author Keigo Hattori
 *
 * 日本語WordNetのすべてにアクセスできます。
 */
public class Api46WordNetWordDBExample {

  static String ENDPOINT1    = "https://api.apitore.com/api/46/wordnet/word/bylemma";
  static String ENDPOINT2    = "https://api.apitore.com/api/46/wordnet/word/bywordid";
  static String ACCESS_TOKEN = "YOUR-ACCESS-TOKEN";

  public static void main(String[] args) {
    RestTemplate restTemplate1 = new RestTemplate();
    Map<String, String> params1 = new HashMap<String, String>();
    params1.put("access_token", ACCESS_TOKEN);
    params1.put("lemma", "犬");
// Path: wordnet-response/src/main/java/com/apitore/banana/de/sciss/ws4j/common/PosDef.java
// public enum PosDef {
//   n ("n","noun"),
//   v ("v","verb"),
//   a ("a","adjective"),
//   r ("r","adverb");
// 
//   private final String id;
//   private final String description;
//   private PosDef(final String id, final String description) {
//     this.id = id;
//     this.description = description;
//   }
//   public String getId() {
//     return id;
//   }
//   public String getDescription() {
//     return description;
//   }
// 
// }


// Path: wordnet-response/src/main/java/com/apitore/banana/response/de/sciss/ws4j/sample/Api46WordNetWordDBExample.java
import java.util.HashMap;
import java.util.Map;
import org.springframework.web.client.RestTemplate;
import com.apitore.banana.de.sciss.ws4j.common.PosDef;
import com.apitore.banana.response.de.sciss.ws4j.WordResponseEntity;
import com.apitore.banana.utils.UrlFormatter;

package com.apitore.banana.response.de.sciss.ws4j.sample;






/**
 * @author Keigo Hattori
 *
 * 日本語WordNetのすべてにアクセスできます。
 */
public class Api46WordNetWordDBExample {

  static String ENDPOINT1    = "https://api.apitore.com/api/46/wordnet/word/bylemma";
  static String ENDPOINT2    = "https://api.apitore.com/api/46/wordnet/word/bywordid";
  static String ACCESS_TOKEN = "YOUR-ACCESS-TOKEN";

  public static void main(String[] args) {
    RestTemplate restTemplate1 = new RestTemplate();
    Map<String, String> params1 = new HashMap<String, String>();
    params1.put("access_token", ACCESS_TOKEN);
    params1.put("lemma", "犬");
    params1.put("pos", PosDef.n.toString());