Add meta endpoint
This commit is contained in:
parent
b0a61ddbdc
commit
582b474747
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using RestSharp;
|
||||
using HabitSharp.Managers;
|
||||
|
||||
|
@ -28,5 +29,11 @@ namespace HabitSharp
|
|||
response.ErrorException);
|
||||
return response.Data;
|
||||
}
|
||||
|
||||
public Result<Dictionary<string, string>> GetModelPaths(string ModelName) {
|
||||
var req = new RestRequest("models/{model}/paths");
|
||||
req.AddUrlSegment("model", ModelName);
|
||||
return this.Execute<Result<Dictionary<string, string>>>(req);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue