Comments (7)
You need to change the endpoint to your installtion subfolder (for your case /api/) in the RestApi configuration page :
- Select Modules in menu.
- Find RestApi module in the list below and click settings.
- Change endpoint here :
if you cant access the admin UI, you can try changing RestApi module settings in PhpMyAdmin.
- Select the database connected to your processwire installation.
- Select the "modules" table
- Find the RestApi row
- You can change the RestApi endpoint setting in the data column to api/api
from restapi.
Thanks for your help
from restapi.
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.
@sinky set your endpoint to api/api
from restapi.
Thanks for helping out @nwabeen
from restapi.
@thomasaull are you planning on fixing this to have only the additional url-part in the input field?
from restapi.
@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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restapi.