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 "
628628
629629## Mapping names for legacy systems
630630
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:
634635
635636 'mapping' => 'wp_posts=posts,wp_posts.ID=posts.id',
636637
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.
639642
640643## Middleware
641644
You can’t perform that action at this time.
0 commit comments