com.algorithmia.algo.AcceptsJson Maven / Gradle / Ivy
package com.algorithmia.algo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* For algorithm development, labels an apply method indicating it
* should be passed in the raw/unparsed JSON input from the user. If the user did not call
* the algorithm with a JSON content-type, this apply method will not be called.
* Note: You can only have a single apply method if you use @AcceptsJson
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface AcceptsJson {}