fix getByTypeAndName method for directory structure

This commit is contained in:
Sebastian Sdorra
2011-11-24 21:05:34 +01:00
parent 076c008f13
commit b4fc971fa9

View File

@@ -416,11 +416,10 @@ public class RepositoryResource
* @return the {@link Repository} with the specified type and name
*/
@GET
@Path("{type}/{name}")
@Path("{type: [a-z]+}/{name: .*}")
@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@TypeHint(Repository.class)
public Response getByTypeAndName(@Context Request request,
@PathParam("type") String type,
public Response getByTypeAndName(@PathParam("type") String type,
@PathParam("name") String name)
{
Response response = null;