Giter VIP home page Giter VIP logo

Comments (7)

nwabeen avatar nwabeen commented on June 2, 2024 1

You need to change the endpoint to your installtion subfolder (for your case /api/) in the RestApi configuration page :

  1. Select Modules in menu.
  2. Find RestApi module in the list below and click settings.
  3. Change endpoint here :
    Capture d’écran 2020-07-26 à 16 00 18

if you cant access the admin UI, you can try changing RestApi module settings in PhpMyAdmin.

  1. Select the database connected to your processwire installation.
  2. Select the "modules" table
  3. Find the RestApi row
  4. You can change the RestApi endpoint setting in the data column to api/api

Capture d’écran 2020-07-26 à 16 00 09

from restapi.

nwabeen avatar nwabeen commented on June 2, 2024

Thanks for your help 👍

from restapi.

sinky avatar sinky commented on June 2, 2024

How is this done?
My installation is in a subdir called "api/" ... this seams to conflict with the plugins default Endpoint "api"
After installation of this module on a fresh ProcessWire installation i can't access the admin UI or any page anymore.
Only on the start page the the following is displayed:

message": "no endpoint defined"

from restapi.

lesaff avatar lesaff commented on June 2, 2024

@sinky set your endpoint to api/api

from restapi.

thomasaull avatar thomasaull commented on June 2, 2024

Thanks for helping out @nwabeen 👍

from restapi.

yannbolliger avatar yannbolliger commented on June 2, 2024

@thomasaull are you planning on fixing this to have only the additional url-part in the input field?

from restapi.

thomasaull avatar thomasaull commented on June 2, 2024

@yannbolliger Since it's not really working out to keep a good maintenance on this project, I decided (see: https://processwire.com/talk/topic/20006-module-restapi/?do=findComment&comment=204917) to deprecate it in favour of the newly released AppApi module: https://modules.processwire.com/modules/app-api/ Please continue to make any suggestions there.

Personally I think its a good idea to keep the endpoint setting as is. Some people might want to use an endpoint other than api. Also there is a note below the field, which clearly describes the usage in combination with a subdirectory.

from restapi.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.