xaraya / apischemas
Play with API schemas
Installs: 44
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:xaraya-module
Requires
- mevdschee/php-crud-api: ^2.14
- nikic/fast-route: 2.0.0-beta1
README
This Xaraya module provides a playground to experiment with API schemas, including:
- creating dynamicdata objects from JSON schema files
- using defermany properties to establish many-to-many links between dynamicdata objects
- loading items from JSON data files
- [TODO] providing access to these objects via REST API
- [TODO] adapting an existing GraphQL schema
You can view the imported objects via the dynamicdata user interface, and follow the many-to-many links there:
https://owncloud.mikespub.net/bermuda/index.php?object=api_starships&method=display&itemid=10
The inspiration for these experiments is the Stars Wars API (SWAPI) and the SWAPI GraphQL Wrapper to https://swapi.dev/