Module neberus.core

Annotation Type ApiCommonResponse


  • @Target(TYPE)
    @Retention(SOURCE)
    @Repeatable(ApiCommonResponses.class)
    @Inherited
    public @interface ApiCommonResponse
    Document a common Response on class level, the response will be added to every method inside that class. An @ApiResponse defined on the method with the same status will be favoured.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String description
      Description of the response.
      ApiStatus status
      Status of the response.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      ApiEntity[] entities
      Entities used in this response.
      ApiHeader[] headers
      Headers used in this response.
    • Element Detail

      • status

        ApiStatus status
        Status of the response.
        Returns:
        the status
      • description

        java.lang.String description
        Description of the response.
        Returns:
        the description
      • entities

        ApiEntity[] entities
        Entities used in this response.
        Returns:
        the entities
        Default:
        {}
      • headers

        ApiHeader[] headers
        Headers used in this response.
        Returns:
        the headers
        Default:
        {}