WSO2 BAM: howto send log event via REST endpoint [closed] - rest

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to send log events to BAM 2.4.1 via client REST but I dont find any example about it so I need to know what is the endpoint url and some example about building of the json message to send.
Thanks in advance for any help

Currently, it doesn't have a REST API to publish events. Current options are listed here.
In addition you can use Analytics JavaScript (JS) API as well. It has this limitation.
Currently due to a limitation, client applications should be deployed
in the same domain as the Dashboard server. i.e -
DAS_HOME/repository/deployment/server/webapps

Related

Handling Dependency 4XX in REST [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am wondering what would be the appropriate error code to bubble upto my clients when I get 4XX from my dependencies. Say for example, one of my downstream services returns to me a 401 code. This means my own server was not authorised for this request. How should I bubble this information to my clients? Would 424 be the appropriate code to bubble up? I read that it was added to HTTP as an extension, so is it recommended to use it?
Status codes from extensions can be used when properly registered and sufficiently defined.
That said, a 4xx seems to be incorrect here. If your server is not configured properly to access a back end, that's a server error, thus a 5xx.

see api calling information on chrome developer tab [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
i want to see calling of an API in chrome network tab to implement them in my web client.
i go to the domain food.shahed.ac.ir
then some api calls very fast and then redirects to another page very fast.
so i can not see the first requests .
You can check Preserve log checkbox.
Then all requests should be available.

Ajax insert data into mysql [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to save some data into mysql, let´s say "LONDON" and I can use Javascript , jQuery and Ajax, but NO node.js or PHP.
Is there any way to do it?
Thanks,
R.
There is no way to connect to MySQL server using only JavaScript, jQuery or Ajax directly because connecting to DB server to save or retrieve data is what server does which none of 3 can do alone.
However, there is service that does the server-like tasks for you.
https://www.dreamfactory.com/
Please take a look.
A solution for this problem would be to use the micro-services architecture and the RESTful Web Services.
Javascript could send the data to an URL and on the server side the data would be sent to the database.

Grails how to write a RESTful post call for my grails application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am new in writing RESTful calls, and I am also new in Grails. However I am trying to write my first Rest API in my Grails application.
Based on this link:
http://grails.github.io/grails-doc/3.0.10/guide/webServices.html#versioningResources
I noticed that there is fully explanation of how to make a get and post request.
However, I would like to make a rest post call through my code, and not via culr Unix tool.
What should I use?
I am running Grails 3.0.10, can I use HttpBuilder?
Can you provide me examples?
Research Grails Rest Builder, which is part of the Grails REST API. For example:
import grails.plugins.rest.client.RestBuilder
// POST request and get response back
def resp = new RestBuilder().post("$baseUrl/api/employees/count")
// confirm that status and returned values are ok
resp.status == OK.value()
resp.json.count == 100
The groovydocs are here: http://springsource.github.io/grails-data-mapping/rest-client/api/index.html. Older documentation is here: https://github.com/grails-plugins/grails-rest-client-builder/.

How to display resources of a restful API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to display the resources and associated subresources of a restful API I am working with (https://api.lendingclub.com/api/investor//). If resources aren't documented, is there any way to find them?
There presently is not a standard way to discover restful API operations like there is with WSDL based soap web services.
Documentation from the API provider is the best way to learn.