Kentico 8 Response

avdhoota n asked on March 16, 2017 10:22

Hi All,

Here i have one requirement to implement in Kentico 8. I have a rest api in my website and it is being used by some other java application and those are asynchronous calls to Kentico from Java. Now i need to save those response coming from java app somewhere in Kentico.

What is the best approach to do this? One i am thinking to crate a rest api in my Kentico website which will be exposed to Java Application just to send receive the response.

Is there any other way like configuring Kentico Rest in different way to get the response so i don't need to create classic .Net rest api ?

Please help me with this asap as it is needed urgently.

Thanks, Avdhoota

Correct Answer

Jan Hermann answered on March 17, 2017 18:22

Yes, custom table items are a bit special. Please use this url instead:

/rest/customtableitem.customtable.sampletable/all

where customtable.sampletable is the code name of your custom table.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jan Hermann answered on March 16, 2017 10:30

Kentico REST API allows you to store data as well (POST) or update them (PUT):

https://docs.kentico.com/k10/integrating-3rd-party-systems/kentico-rest-service/manipulating-data-using-rest

0 votesVote for this answer Mark as a Correct answer

avdhoota n answered on March 16, 2017 10:51

Hi Jan,

Thanks a lot for the prompt response.

Sorry, I am very new to Kentico. So can i use Custom Tables to receive these async responses?

For an ex. I will create one Custome table TransferResult with fields 'AliasPath' and 'Response'.

So what should be the format for response(xml/json).

Does this require any other configuration changes?

0 votesVote for this answer Mark as a Correct answer

avdhoota n answered on March 17, 2017 15:21 (last edited on March 17, 2017 15:23)

I am getting 404 error while accessing custom table through rest. I can access documents through rest. this is my url, Sitename/rest/customtable.tablename just to add, In REST settings, Service enabled for both documents and objects. am i missing anything here?

0 votesVote for this answer Mark as a Correct answer

avdhoota n answered on March 17, 2017 18:36

Thanks a lot Jan, it worked!

0 votesVote for this answer Mark as a Correct answer

avdhoota n answered on March 20, 2017 14:08

Hi All, Post method to add data into custom table gives an error '

Method not allowed.

Here is my request,

/rest/customtableitem.customtable.sampletable/all?aliaspath=testav&response=testav

and this -> /rest/customtableitem.customtable.sampletable?aliaspath=testav&response=testav gives error

404 - File or directory not found.

for now i am hitting this request from Chrome postman.

'Get' request gives all the data, /rest/customtableitem.customtable.sampletable/all

Please let me know what am i missing here

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.