@Response(description="File action") public static class Action extends LinkString { public Action(String name, String uri, Object...uriArgs) { super(name, uri, uriArgs); } }
@Response(schema=@Schema(type="string",format="binary"), description="Contents of file") static class FileContents extends FileInputStream { public FileContents(File file) throws FileNotFoundException { super(file); } }
@Response(schema=@Schema(type="string",format="binary"), description="Contents of file") static class FileContents extends FileInputStream { public FileContents(File file) throws FileNotFoundException { super(file); } }
@Response(description="The configuration file contained syntax errors and could not be parsed.") private class BadConfig extends InternalServerError { private static final long serialVersionUID = 1L; BadConfig(Exception e) { super(e, "The configuration file contained syntax errors and could not be parsed."); } }
@Response(description="File action") public static class Action extends LinkString { public Action(String name, String uri, Object...uriArgs) { super(name, uri, uriArgs); } }
@Response(description="Section not found.") private class SectionNotFound extends NotFound { private static final long serialVersionUID = 1L; SectionNotFound() { super("Section not found."); } }
@Response(schema=@Schema(type="string",format="binary"), description="Contents of file") static class FileContents extends FileInputStream { public FileContents(File file) throws FileNotFoundException { super(file); } }
@Response(description="File action") public static class Action extends LinkString { public Action(String name, String uri, Object...uriArgs) { super(name, uri, uriArgs); } }
@Response(schema=@Schema(type="string",format="binary"), description="Contents of file") static class FileContents extends FileInputStream { public FileContents(File file) throws FileNotFoundException { super(file); } }
@Response(code=501) public static class A02 extends Exception { @Override public String toString() {return "foo";} }
@Response public static class G01 extends ArrayList<Integer> { public G01() { add(1); add(2); } }
@Response public static class SB03 extends LinkedList<String> { private static final long serialVersionUID = 1L; } @RestMethod
@Response( api={ "description:'a\nb',", "schema:{type:'string'},", "headers:{foo:{type:'string'}},", "example:'a',", "examples:{foo:'a'}" } ) public static class UA02 extends Throwable {} @RestMethod
@Response(schema=@Schema(format="byte")) public static class D06 { public byte[] toBytes() { return "foo".getBytes(); } }
@Response(schema=@Schema(collectionFormat="pipes")) @RestMethod public String[] d01() { return new String[]{"foo","bar"}; } @RestMethod
@RestMethod @Response public E01 e03() { return new E01(); } @RestMethod
@RestMethod public void d08(@Response(schema=@Schema(type="string",format="byte")) Value<byte[]> value) { value.set("foo".getBytes()); } }
@RestMethod @Response(schema=@Schema(description="f03", collectionFormat="pipes")) public List<Integer> f03() { return AList.create(1,2); } @RestMethod
@RestMethod public void f01(@Response(schema=@Schema(description="f01", collectionFormat="pipes")) Value<List<Integer>> body) { body.set(AList.create(1,2)); } @RestMethod
@Body @Response @ResponseHeader @X public static class A01 { @Query @Header @FormData @Path @Schema public int f1; }