getting REST working for Kentico 13 trial

Douglas Fittipaldi asked on July 7, 2022 21:15

Hello:

I've been evaluating Xperience and was wondering how to go about getting the REST API working. I've tried following this but couldn't get anywhere with it. Is the REST service part of the Kentico evaluation and if it is could you please point me in the right direction to get it working? Thanks in advance.

Recent Answers


Liam Goldfinch answered on July 7, 2022 23:45

The trial license is a fully-featured time limited trial. The REST API should definitely work as long as all of the steps are followed as per the documentation.

Are you definitely querying with the right URL? There are examples here. The REST API is available from the admin website address, not the MVC presentation website, so ensure you're using the right domain or port number. The format of the URL should be https://<admin url>/rest/<resource>.

I personally don't use the REST API that often, and prefer to create custom web API controllers in the presentation website.

0 votesVote for this answer Mark as a Correct answer

Douglas Fittipaldi answered on July 8, 2022 14:02

Thanks for answering, Liam. I'm guessing the admin website address is http://localhost/Kentico13_Admin/Admin/CMSAdministration.aspx but if I try something like http://localhost/Kentico13_Admin/Admin/rest/ or http://localhost/Kentico13_Admin/rest/ I keep getting a 404 error. This is the Core version, in case that matters.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 8, 2022 15:47

Douglas,

Not only do you have to configure Xperience, you have to set up authentication and ensure you've enabled items to be retrieved in the Xperience settings application under Settings -> Integration -> REST (part of the configuration step, but just validate).

Once you have done the above items, in your case, your requests should come from http://localhost/Kentico13_Admin/rest/

0 votesVote for this answer Mark as a Correct answer

Douglas Fittipaldi answered on July 8, 2022 15:52

Hi Brenden:

I was afraid of that. Unfortunately IT keeps a tight lock on our computers so I'll need to consult with them to make the configuration work. Thanks.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on July 8, 2022 15:54

Authentication has nothing to do with your IT department unless you're using Windows Authentication on your CMS website. Configuration could cause issues with IT if they don't allow you to install features or enable/use IIS but if you're allowed to run a site on your machine you're 99% of the way there.

0 votesVote for this answer Mark as a Correct answer

Douglas Fittipaldi answered on July 8, 2022 15:59

It's the configuration that's the issue. I can't get Turn Windows Features On or Off to work, and I'm a local admin for my machine so it should be working, so that's what I have to talk to IT about.

1 votesVote for this answer Mark as a Correct answer

Douglas Fittipaldi answered on August 3, 2022 22:24

OK, getting back to this, IT has set aside some space on a server to play with and that server was configured correctly so once I installed Kentico on this server getting REST up was a snap. I'd like to thank Brenden and Liam for their input and guidance. Thanks!

0 votesVote for this answer Mark as a Correct answer

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