[TEST] Removed TODO and custom code now that ping and info are two different apis in the REST spec

This commit is contained in:
Luca Cavanna 2014-01-16 21:17:29 +01:00
parent 81846151f7
commit ee1e5660e1
1 changed files with 1 additions and 6 deletions

View File

@ -40,12 +40,7 @@ public class RestSpec {
} }
void addApi(RestApi restApi) { void addApi(RestApi restApi) {
if ("info".equals(restApi.getName())) { if ("get".equals(restApi.getName())) {
//TODO info and ping should really be two different api in the rest spec
//info (GET|HEAD /) needs to be manually split into 1) info: GET / 2) ping: HEAD /
restApiMap.put("info", new RestApi(restApi, "info", "GET"));
restApiMap.put("ping", new RestApi(restApi, "ping", "HEAD"));
} else if ("get".equals(restApi.getName())) {
//TODO get_source endpoint shouldn't be present in the rest spec for the get api //TODO get_source endpoint shouldn't be present in the rest spec for the get api
//as get_source is already a separate api //as get_source is already a separate api
List<String> paths = Lists.newArrayList(); List<String> paths = Lists.newArrayList();