package org.gbif.api.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation that marks a resource method to throw a NotFoundException (becomes http 404)
 * when null is returned by the method.
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface NullToNotFound {
}

@@ -426,11 +426,81 @@
 tFound %7B
+%0A%0A  /**%0A   * Resource URI which was not found.%0A   */%0A  String value();
 %0A%7D%0A

Add resource URI parameter to NullToNotFound annotation