Repository navigation
docs: rewrite the README - #328
Merged
Merged
Conversation
…n it Replace the install-and-lint stub and the two feature deep dives with a README that explains what core-api is, where it sits in a Fleetbase install, what the platform provides, and how extensions build on it: service provider, model, controller and route conventions, REST query parameters, extension points, configuration, Artisan commands and the development workflow. Add CI, Packagist version, PHP version, downloads, license and Discord badges next to coverage, and correct the PHP requirement to 8.1. The resource transformer and realtime channel authentication guides move unchanged to docs/ and are linked from the extension points table.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #328 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 9600 9600
===========================================
Files 519 519
Lines 29841 29841
===========================================
Hits 29841 29841
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The old README was an install command, the lint/test scripts, and two unrelated deep dives (resource transformers and realtime channel auth). It never said what core-api is, what it provides, or how extensions build on it. It also listed PHP 8.0+, but the package requires
^8.1.This PR rewrites it from scratch as a README for the package itself.
int/v1,v1,oauth).deploy.sh.fleetbaseRoutes()generates, and the Resource/Filter/Request naming conventions the controller resolves.limit,page,sort,query, column and range filters,with/expand,with_count,without.Badges: added CI, Packagist version, PHP version, downloads, license and Discord next to the existing Codecov badge.
Moved, unchanged: the resource transformer and realtime channel authentication sections now live in
docs/resource-transformers.mdanddocs/realtime-channel-authentication.md. The README links to them from the extension points and configuration tables.Review notes
main(routes,HasApiModelBehavior,Filter,Find, config defaults, command signatures). Search (query) and range filters depend on the resource's filter class, and the README says so.curlURL, which needs an API key. The Mermaid block was parsed and rendered with Mermaid 10.9.1.Parcels) is illustrative and not a real package.