ryancramerdesign / servicepages Goto Github PK
View Code? Open in Web Editor NEWProcessWire Pages Web Service
ProcessWire Pages Web Service
Braaw...
Currently each request ends in the "same" json output. Same properties, as defined under "Fields that will be included in results".
I think it would great, if we could define those fields for each page/template...
What do you think?
https://github.com/ryancramerdesign/ServicePages/blob/master/ServicePages.module#L287
https://github.com/ryancramerdesign/ServicePages/blob/master/ServicePages.module#L288
those have to be changed to wire("config")
I'm currently building an app using ProcessWire. I'm using the ServicePages module to expose my data as a REST-like API.
I'm also using the Repeater FieldType. However, the repeater field values aren't outputted in the API. Right now I'm only getting meta data for the repeater values:
reel_captions: [
{
id: 1060,
parent_id: 1059,
template: "repeater_reel_captions",
name: "1468607646-89-1",
path: "/processwire/repeaters/for-field-163/for-page-1/1468607646-89-1/",
title: null
}
]
How do I get the actual values outputted?
Posted this on StackOverflow as well.
This line write the default to the get request which makes it impossible to specify a limit.
https://github.com/ryancramerdesign/ServicePages/blob/master/ServicePages.module#L122
As mentioned on the forum:
https://processwire.com/talk/topic/1654-pages-web-service-servicepages/page-4
Adrian opened an issue here too on the main Processwire Github page:
ryancramerdesign/ProcessWire#520
There seems to be a bug in Modules.php at line 837, which does only allow superusers to view the output. I'd rather not edit the core as you can imagine, and this bug is preventing me to build an app that can pull info from PW. I hope you can take a look at it soon.
If a field is empty, is there a way to emit it, so i don't get a response filled with null
values like so:
{
"selector": "template=reel, limit=25",
"total": 1,
"limit": 25,
"start": 0,
"matches": [{
"id": 1,
"parent_id": 0,
"template": "reel",
"path": "\/",
"name": "home",
"created": -62169955622,
"modified": 1468539079,
"title": "Reel",
"body": null,
"article_content": null,
"article_gallery": null,
"article_title": null
}]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.