Annotation Interface Accepted


@Retention(RUNTIME) @Target(METHOD) @Documented public @interface Accepted
A convenience annotation that is itself annotated with @ApiResponse.

Methods that carry this annotation will be included in generated openApi documentation with predefined HTTP status code 202. And are assumed to have a ResponseEntity return type with specified type reference (not a wildcard <?>). @ResponseBody description and example will be generated according to a type reference specified in ResponseEntity.

NOTE: @Accepted is processed if annotated method is part of properly configured RestController and springdoc-openapi library.

Since:
1.0
Author:
Ilya Nikolaev
See Also:
  • ApiResponse
  • ResponseEntity
  • RestController