rest

Spring rest controller returns 404

烂漫一生 提交于 2021-02-10 22:53:23
问题 My rest controller ,which is written by spring, returns 404 but when I debug over Eclipse , I see that it comes to my method and returns result but result is still 404. Controller is like: @RestController @RequestMapping("admin/context") public class ApplicationAdmin { @Autowired private ApplicationContextService applicationContextService; @RequestMapping(value="/monitor",method = RequestMethod.GET, produces = "application/json") @ResponseStatus(HttpStatus.OK) public Response monitorContexts(

Spring rest controller returns 404

99封情书 提交于 2021-02-10 22:53:14
问题 My rest controller ,which is written by spring, returns 404 but when I debug over Eclipse , I see that it comes to my method and returns result but result is still 404. Controller is like: @RestController @RequestMapping("admin/context") public class ApplicationAdmin { @Autowired private ApplicationContextService applicationContextService; @RequestMapping(value="/monitor",method = RequestMethod.GET, produces = "application/json") @ResponseStatus(HttpStatus.OK) public Response monitorContexts(

How to get build list for particular Commit through DevOps REST API

和自甴很熟 提交于 2021-02-10 20:30:41
问题 I need to retrieve a list of builds associated with particular Commit (see a picture of TFS UI) through Azure DevOps REST API. I can do it by using brute force: Load all builds for my repository through API call. Cannot find here a filter for commit: GET https://dev.azure.com/{organization}/{project}/_apis/build/builds Then filter-out only builds with specified "commitId": "eed1b008520c2b32669bef9a0a08be8a50b6e8a4" But this is extremely inefficient solution. Can you help me if there is a more

convert CURL request into VBA xml Object in MS-Access

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-10 18:17:08
问题 I am trying to handle moodle data from our schools MS-Access database using VBA-code to post xml.objects. I implemented the following code from an example for using the RESTful-API into my VBA-code (source https://moodle.org/plugins/webservice_restful): json code: curl -X POST \ -H "Content-Type: application/json" \ -H "Accept: application/json" \ -H 'Authorization: {token}' \ -d'{"options": {"ids":[6]}}' \ "https://localhost/webservice/restful/server.php/core_course_get_courses" This is my

Unspecified certificate from client when using TRESTRequest

前提是你 提交于 2021-02-10 18:15:25
问题 When calling one of our Internal servers with SSL URL, TRESTClient and TRESTRequest gives and error first from Exception Class ENetHTTPCertificateException and then from ERESTException with the message 'Unspecified certificate from client' I know that WinInet Api is being used behind, but here is no native way in the Delphi Rest Library to set the connection to Ignore Certificate Errors - How can I code that ? or Does this mean the server is requesting a client certificate ? function

HTTP GET using cURL is giving SSL error

妖精的绣舞 提交于 2021-02-10 16:02:33
问题 I have written a REST server which listens on port 8000. I am trying to invoke the api from the same machine using the cURL command - curl -H "accept: application/json" https://localhost:8000/status -v I am getting the following error * About to connect() to localhost port 8000 (#0) * Trying ::1... * Connected to localhost (::1) port 8000 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -12263 (SSL_ERROR_RX_RECORD

HTTP GET using cURL is giving SSL error

可紊 提交于 2021-02-10 15:59:41
问题 I have written a REST server which listens on port 8000. I am trying to invoke the api from the same machine using the cURL command - curl -H "accept: application/json" https://localhost:8000/status -v I am getting the following error * About to connect() to localhost port 8000 (#0) * Trying ::1... * Connected to localhost (::1) port 8000 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * NSS error -12263 (SSL_ERROR_RX_RECORD

Apps Script Execution API 404 error with devMode: true

给你一囗甜甜゛ 提交于 2021-02-10 15:42:17
问题 When requesting POST https://script.googleapis.com/v1/scripts/{script_id}:run with devMode: true I get a 404 error. I can run the script successfully with devMode: false . Although other people (1, 2) have raised this issue, none of the other solutions work. I keep getting an HTTP 404 Not Found error whenever my request comes with devMode: true . I have performed the following steps: created a new Google account created a Cloud project set up an OAuth consent screen for the project authorized

500 error on UrlFetchApp

被刻印的时光 ゝ 提交于 2021-02-10 15:16:18
问题 I am trying to pass data of a product list from Magento API to Google Spreadsheet. No authentication was required for the Magento API as I was retrieving the data as a Guest. The API is working perfectly with RestClient. However, 500 error occurred when fetching the REST resource from Googe Apps Script. Exception: Request failed for http://mymagentohost/api/rest/products?limit=2 returned code 500. Truncated server response: Service temporary unavailable (use muteHttpExceptions option to

500 error on UrlFetchApp

怎甘沉沦 提交于 2021-02-10 15:15:26
问题 I am trying to pass data of a product list from Magento API to Google Spreadsheet. No authentication was required for the Magento API as I was retrieving the data as a Guest. The API is working perfectly with RestClient. However, 500 error occurred when fetching the REST resource from Googe Apps Script. Exception: Request failed for http://mymagentohost/api/rest/products?limit=2 returned code 500. Truncated server response: Service temporary unavailable (use muteHttpExceptions option to