ODATA-WebApi:多个实体的补丁请求

时间:2019-03-08 06:36:09

标签: api asp.net-web-api odata

我正在尝试调用控制器的以下PATCH端点(整数数组作为键):

re.match(r"^(?=(.)(.)).*\2\1$", input)

但是我从服务器获取到未找到响应404。

我想更新其ID在数组#include <iostream> #include <thread> #include <mutex> #include <condition_variable> std::mutex mtx; std::condition_variable cv; int noofseats = 0; bool ready = false; void enter_bar(int id) { std::unique_lock<std::mutex> lck(mtx); while (noofseats >= 5) { //lock threads if seats are filled cv.wait(lck); std::cout << "User : " << id << "waiting for seat" << std::endl; } std::cout << "User : " << id << "got seat" << std::endl; noofseats++; } void exit_bar() { std::unique_lock<std::mutex> lck(mtx); noofseats--; if(noofseats < 5) { //would unloack other threads if seats are present cv.notify_all(); } } int main() { std::thread threads[10]; // spawn 10 threads: for (int i = 0; i<10; ++i) { threads[i] = std::thread(enter_bar, i); } //three people exit bar exit_bar(); exit_bar(); exit_bar(); for (auto& th : threads) th.join(); return 0; } 中的所有实体的数据。

我这样呼叫服务:public virtual async Task<IHttpActionResult> Patch([FromODataUri] int[] ids, Data data)

MapHttpRoute:

ids

知道为什么找不到路线吗?

0 个答案:

没有答案