微風と Web API コントローラーに関する公式ドキュメントでは、Web Api コントローラーのメソッド名にある種の命名規則が見られます。たとえば、Todo エンティティ タイプの場合、Todos() メソッドがあります。
entityType "Customer" があるとします。次に、apiController でメソッドを作成します。
[HttpGet]
public IQueryable<Customer> GetCustomers() { ... }
私のクライアント JavaScript アプリでは、次のように EntityQueries を実行します。
//api method: GetCustomers
//type name: Customer
var query = EntityQuery.from("GetCustomers");
manager.execute(query); //works
manager.fetchEntityByKey("Customer", 53) //doesn't works!
失敗し、次のエラーが表示されます。
No HTTP resource was found that matches the request URI
'http://localhost:4119/api/SomeController/Customers?$filter=Id eq 53'
では、GetCustomers メソッドの名前を Customers() に変更する必要がありますか、それとも何か不足していますか?