Issue I have done quite some search already. However, still having doubts about the ‘main’ parameter in the package.json of a Node project. How would filling in this field help? Asking in another way, can I start the module in
Continue readingTag: rest
[SOLVED] Using HTTP status code 206 – Partial Content for pagination
Issue Background Our team has brought up the idea of using status code 206 – Partial Content in our REST API to indicate that GET requests over large datasets have more content than was returned, in order to allow the
Continue reading[SOLVED] Unit Testing for a Python RESTful API
Issue What’s the best way to perform Unit Testing for a RESTful API that includes email functionality (lost passwords, user activation) in Python? Everything is done via HTTP POST / GET and at this time, authentication isn’t involved. Should I
Continue reading[SOLVED] ALM 12 REST using SpringFramework RestTemplate: "401 QCSession cookie missing"
Issue In ALM 12 we have to explicity call “qcbin/rest/site-session” to get session. When I GET call “/qcbin/rest/site-session” I receive the following: “Set-Cookie=[BIGipServerALMAST330P-QC=rd100o00000000000000000000ffff0fe0dd74o8080; path=/, ]”” I extract the cookie as described here: HP ALM 12 REST not returning QCSession cookie.
Continue reading[SOLVED] how to "escape" a comma in a comma-separated list in a POST request?
Issue EDIT : the API developer provided a solution by using another delimiter and specifying it in the request (see below my answer to my own question) I am sending POST requests to a RESTful API, which require a comma-separated
Continue reading[SOLVED] Oracle REST Data Services, JSON vs HTML error responses
Issue I have a REST API with POST method and it works fine. But on a custom 400 status code error response the content-type seems to be html rather than json. Sample: 400 , 79ms, 23 bytes api_status_code: SIM400-05 connection:
Continue reading[SOLVED] REST API with Struts
Issue I’m trying to add a REST API to an existing struts 2 application. The idea is to have part of the application using standard struts mapping, and another part using REST. So I used the struts2-rest-plugin plugin, and added
Continue reading[SOLVED] Docusign error: "unable to get local issuer certificate"
Issue We’re using the Docusign RestAPI (PHP SDK) from our app and it works great. Authentication mode is JWT. I want to use all the code I’ve written on a different subdomain, but I get this error: API call to
Continue reading[SOLVED] SharePoint API, which to use in 2022?
Issue I’m wondering which would be the best approach in 2022 when it comes to working with SharePoint – API wise. There seem to be a few different possible approaches: CSOM libraries, REST v1, REST v2 (beta?) and MS Graph.
Continue reading[SOLVED] Permission for owner that user account
Issue I building 2 permission for the user account owner and the apartment owner. Although they have the same code, the user account owner doesn’t work. permissions.py class IsOwnerUserOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True
Continue reading