File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -628,14 +628,17 @@ The GeoJSON functionality is enabled by default, but can be disabled using the "
628
628
629
629
## Mapping names for legacy systems
630
630
631
- To support creating an API for (a part of) a legacy system (such as Wordpress) you may want to map the table and column names as you
632
- may not be able to alter them without breaking the software. The config allows you to rename tables and columns with a
633
- comma separated list of mappings that are split with an equal sign, like this:
631
+ To support creating an API for (a part of) a legacy system (such as Wordpress) you may want to map the table and column
632
+ names as can not improve them without changing the software, while the names may need some improvement for consistency.
633
+ The config allows you to rename tables and columns with a comma separated list of mappings that are split with an
634
+ equal sign, like this:
634
635
635
636
'mapping' => 'wp_posts=posts,wp_posts.ID=posts.id',
636
637
637
- This specific example will expose the "wp_posts" table as "posts" and the field "ID" within that table as "id" (notice
638
- the casing).
638
+ This specific example will expose the "wp_posts" table at a "posts" end-point (instead of "wp_posts") and the
639
+ column "ID" within that table as the "id" property (in lower case instead of upper case).
640
+
641
+ NB: Since these two mappings overlap the first (less specific) mapping may be omitted.
639
642
640
643
## Middleware
641
644
You can’t perform that action at this time.
0 commit comments