Interface VersionApi


  • @Path("/_matrix/client/versions")
    @Produces("application/json")
    public interface VersionApi
    Gets the versions of the specification supported by the server.
    Values will take the form rX.Y.Z.
    Only the latest Z value will be reported for each supported X.Y value. i.e. if the server implements r0.0.0, r0.0.1, and r1.2.0, it will report r0.0.1 and r1.2.0.
    • Method Summary

      Modifier and Type Method Description
      void versions​(javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.container.AsyncResponse asyncResponse)
      Gets the versions of the specification supported by the server.
    • Method Detail

      • versions

        @GET
        @Path("/")
        void versions​(@Context
                      javax.ws.rs.core.UriInfo uriInfo,
                      @Context
                      javax.ws.rs.core.HttpHeaders httpHeaders,
                      @Suspended
                      javax.ws.rs.container.AsyncResponse asyncResponse)
        Gets the versions of the specification supported by the server.
        Return: VersionsResponse.

        Status code 200: The versions supported by the server.

        Parameters:
        uriInfo - Request Information.
        httpHeaders - Http headers.
        asyncResponse - Asynchronous response.