http-delete

How to Stop OneNote API From Returning ID for Deleted Pages

血红的双手。 提交于 2021-01-29 22:09:51
问题 I place a call using the OneNote REST API to return a list of all the pages in a section. This works successfully. However, some of the pages it returns should no longer exist! Yet I can see their information, IDs, etc., even though they have previously been deleted. But if I try to delete them again using REST, I get the error: ERROR (deleteFromURL): <Response [404]> { "error":{ "code":"20102","message":"The specified resource ID does not exist.","@api.url":"http://aka.ms/onenote-errors

How to Stop OneNote API From Returning ID for Deleted Pages

邮差的信 提交于 2021-01-29 21:09:37
问题 I place a call using the OneNote REST API to return a list of all the pages in a section. This works successfully. However, some of the pages it returns should no longer exist! Yet I can see their information, IDs, etc., even though they have previously been deleted. But if I try to delete them again using REST, I get the error: ERROR (deleteFromURL): <Response [404]> { "error":{ "code":"20102","message":"The specified resource ID does not exist.","@api.url":"http://aka.ms/onenote-errors

REST delete multiple items in the batch

给你一囗甜甜゛ 提交于 2020-07-05 10:48:14
问题 I need to delete multiple items by id in the batch however HTTP DELETE does not support a body payload. Work around options: 1. @DELETE /path/abc?itemId=1&itemId=2&itemId=3 on the server side it will be parsed as List of ids and DELETE operation will be performed on each item. 2. @POST /path/abc including JSON payload containing all ids. { ids: [1, 2, 3] } How bad this is and which option is preferable? Any alternatives? Update : Please note that performance is a key here, it is not an option

REST delete multiple items in the batch

左心房为你撑大大i 提交于 2020-07-05 10:48:12
问题 I need to delete multiple items by id in the batch however HTTP DELETE does not support a body payload. Work around options: 1. @DELETE /path/abc?itemId=1&itemId=2&itemId=3 on the server side it will be parsed as List of ids and DELETE operation will be performed on each item. 2. @POST /path/abc including JSON payload containing all ids. { ids: [1, 2, 3] } How bad this is and which option is preferable? Any alternatives? Update : Please note that performance is a key here, it is not an option

Angular refresh table after delete record, using material table and rest api

一个人想着一个人 提交于 2020-01-05 08:33:21
问题 I have a material Table with expandable rows (https://material.angular.io/components/table/examples) and I want to manage delete into the table itself, so I create a delete button with a function that trigger the delete event. The api works, the record is correctly deleted, but the table is not refreshed after delete, and I want to implement this behaviour. Here a stackblitz with fake api: https://stackblitz.com/edit/angular-comzph I try, in my delete function to call ngOnInt and to navigate

No route matches [POST] for delete and update

℡╲_俬逩灬. 提交于 2020-01-03 02:04:52
问题 I know this question was asked a lot of times, but none of the recipes helped me so far. I have an application written in Ruby 2.0.0, Rails 4.0.0 with following routes.rb: resources :announcements do end Which generates the following routes: announcements GET /announcements(.:format) announcements#index POST /announcements(.:format) announcements#create new_announcement GET /announcements/new(.:format) announcements#new edit_announcement GET /announcements/:id/edit(.:format) announcements

Send PUT, DELETE HTTP request in HttpURLConnection

被刻印的时光 ゝ 提交于 2020-01-02 09:55:39
问题 I have created web service call using java below code. Now I need to make delete and put operations to be perform. URL url = new URL("http://example.com/questions"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod( "POST" ); conn.setRequestProperty("Content-Type", "application/json"); OutputStream os = conn.getOutputStream(); os.write(jsonBody.getBytes()); os.flush(); When I add below code to perform DELETE action it gives

Send PUT, DELETE HTTP request in HttpURLConnection

时光毁灭记忆、已成空白 提交于 2020-01-02 09:55:20
问题 I have created web service call using java below code. Now I need to make delete and put operations to be perform. URL url = new URL("http://example.com/questions"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod( "POST" ); conn.setRequestProperty("Content-Type", "application/json"); OutputStream os = conn.getOutputStream(); os.write(jsonBody.getBytes()); os.flush(); When I add below code to perform DELETE action it gives