Jump to content

Featured Replies

Posted

Hi,

I'm playing around with REST API (selfhosted).

When accessing /api it works.

/api

obraz.png.ab3899f72841d5a0dbdb71438dff06b5.png

but when I try to use e.g. /api/core/hello (or any other) I get 404.

obraz.png.941fb9558d245ee6c150af6de1c238bb.png

Do you know what can be wrong?

This error suggests an issue with your configuration of your web server and not passing those requests to the IPS handler (and instead returning a 404 error). What web server are you using?

  • Management

Do you have the .htaccess file uploaded to the /api directory?

/api/?core/hello likely works if not.

  • Author
17 hours ago, Matt said:

Do you have the .htaccess file uploaded to the /api directory?

I'll check that. Probably not.

Anything after "?" works.

/api/?test/test2 

obraz.png.0c63c5381b63fd512c3b1a90326723d3.png

18 hours ago, Paul E. said:

What web server are you using?

Litespeed Web Server

This means the rewriting is not applying to your /api folder. You'll either need to continue adding the path after ? as you see in Matt's example, or you'll need to get URL rewriting applying to the /api folder (which may require the assistance of your host).

Recently Browsing 0

  • No registered users viewing this page.