All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.algorithmia.algo.AcceptsJson Maven / Gradle / Ivy

There is a newer version: 1.0.16
Show newest version
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 {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy