Forum Discussion
TariqHussain
Boss
fengka
are you familiar with endpoints ? you need to create an endpoint and you will get endpoint url. with javascript you can directly hit your request to endpoint url.
<#assign msgID = http.request.parameters.name.get("messageid","") /> <#if msgID !=''> <#assign messages = restadmin("messages/id/${msgID}/kudos/give").messages > </#if >
fengka
10 years agoContributor
TariqHussain I am not familiar with the endpoints you mentioned here. The code you show here looks like is a javascript template by using FreeMarker? (Sorry I am not exactly sure about it).
In my case I am using react native to develop a mobile app and it is using purely javascript to make the REST call. the calling is looking like this. I haven't found how to use restadmin() to call the api here.
fetch(httpUrl)
.then(function(response) {
return response.json();
})
.then(function(myBlob) {
});
Related Content
- 10 months ago
- 7 years ago
- 5 months ago
- 9 years ago
- 2 years ago