@POST @ApiIgnore // until documented
  @Path("{repoId}")
  @Produces("text/plain")
  public Response createRepository(String body, @Context HttpHeaders headers, @Context UriInfo ui, @PathParam("repoId") String repoId) {
    return handleRequest(headers, body, ui, Request.Type.POST, createResource(repoId));
  }
Creates repository.
Handles: POST /repositories requests.

@param body    body
@param headers http headers
@param repoId  repository id
@param ui      uri info
ambari-server/src/main/java/org/apache/ambari/server/api/services/RepositoryService.java