Receiving a JSON response from the BOX Api when requesting a ticket - box-api

I am trying to request a "ticket" from the Box API in order to authenticate a user
. Apparently it will only send back an XML response. I am sure it has something to do with the fact that BOX is still using the 1.0 API for this user authentication process. Is there a way to receive a JSON response for the 1.0 API or use the 2.0 API for this process?
https://www.box.com/api/1.0/rest?action=get_ticket&api_key={api key}
returns XML response.
https://www.box.com/api/2.0/rest?action=get_ticket&api_key={api key}
returns an error in JSON format.

This endpoint currently does not return JSON. We are moving our authentication system to OAuth2, which will return both JSON and XML as the rest of the V2 API does.

Related

Splunk - splunk rest api returns multiple json records. can we force it to send it as a list

I am trying to use splunk rest api to call the logs to do some dashboarding in our external application.
There will be a java middle ware that will call these api and response will be parsed by the UI. But when i call the splunk rest api it returns multiple Json records but not as a list. Just separate json records , It will be troublesome to parse it as its not a list . How do we make sure the response from splunk rest api is just 1 valid Json that can be parsed?
I am attaching the image for postman call for understanding

Webhook received, but Derivative Properties JSON cannot be downloaded

I used the Model Derivative API to convert the IFC file.
In order to use Derivative Properties JSON, I registered to receive notification of the completion of the conversion via webhook.
https://forge.autodesk.com/en/docs/webhooks/v1/reference/events/extraction.finished/
However, when I requested the API to download the Derivative Properties JSON immediately after receiving the notification of conversion completion, I could not retrieve the data.
By requesting the API after some time, the data will be retrieved, but the webhook cannot be used as a trigger.
Is there a webhook that will notify me when Derivative Properties JSON will be available?

Get curl for all the API's present in the swagger UI

I am looking for a swagger API that could potentially generate curl requests for all the APIs present on the swagger UI.
Yes, there is a swagger API already available to get the API details in JSON format. Is there any way I can also get the curl requests for those APIs?
For example:
Here is the swagger UI for petstore
Here is the swagger API to get the data in JSON:
But on the swagger UI when we execute any API, it generates the curl request as well. (Look at the very last of the image)
The goal is to fire all the API's present on the Swagger UI but not manually. I need to automate this flow using curl requests. If anyhow, I can generate curls for all the APIs, then I can easily fire them and automate the process.
I am open to any other solution as well.

How to post/redirect data to another api in aws gateway.I want to GET data also in the same aws api gateway

My question is:
I want to GET data from one api and after filtering the data, I want to POST the data to another API in the same api gateway.
The data is in JSON format and after receiving the data, I filter the data and forward to another api.
I can filter the data, but redirecting the result data to another api, I am struggling with.
How can I do that in aws gateway?
You should use HTTP integration type selecting the POST http method.

What is the best way of converting SOAP to REST

I have few SOAP services exists in my code which produces XML as my response type. I would like to conver this SOAP to RESTful webservice by producing "Application/JSON". So please suggest is there any tool to convert SOAP to REST or any other way of re-using SOAP as Restful service.