laravel-json-api

我要开发同款
匿名用户2021年11月04日
33阅读
开发技术PHP
所属分类开发工具、PHP开发工具
授权协议Apache-2.0 License

作品详情

cloudcreativity/laravel-json-apiStatus

Thispackagehasnowbeenrewritten,substantiallyimprovedandreleasedasthelaravel-json-api/laravelpackage.Documentationforthenewversionisavailableonournewwebsitelaraveljsonapi.ioandthecodeisnowdevelopedundertheLaravelJSON:APIGithuborganisation.

Thecloudcreativity/laravel-json-apipackageisnowconsideredtobethelegacypackage.Asweknowitisinuseinalotofproductionapplications,itwillcontinuetoreceivebugfixesandupdatesfornewLaravelversions.However,itisnolongersupportedfornewfeatures.

Ifyouarestartinganewproject,pleaseusethenewpackagelaravel-json-api/laravelinstead.

Introduction

Buildfeature-richandstandards-compliantAPIsinLaravel.

ThispackageprovidesallthecapabilitiesyouneedtoaddJSONAPIcompliantAPIstoyourapplication.Extensivesupportforthespecification,including:

FetchingresourcesFetchingrelationshipsInclusionofrelatedresources(compounddocuments)Sparsefieldsets.Sorting.Pagination.FilteringCreatingresources.Updatingresources.Updatingrelationships.Deletingresources.Validationof:JSONAPIdocuments;andQueryparameters.

Thefollowingadditionalfeaturesarealsosupported:

FullsupportforEloquentresources,withfeaturessuchas:Automaticeagerloadingwhenincludingrelatedresources.Easyrelationshipend-points.Soft-deletingandrestoringEloquentresources.Pageandcursorbasedpagination.Asynchronousprocessing.Supportmultiplemedia-typeswithinyourAPI.GeneratorsforalltheclassesyouneedtoaddaresourcetoyourAPI.WhatisJSONAPI?

Fromjsonapi.org

Ifyou'veeverarguedwithyourteamaboutthewayyourJSONresponsesshouldbeformatted,JSONAPIisyouranti-bikesheddingweapon.

Byfollowingsharedconventions,youcanincreaseproductivity,takeadvantageofgeneralizedtooling,andfocusonwhatmatters:yourapplication.ClientsbuiltaroundJSONAPIareabletotakeadvantageofitsfeaturesaroundefficientlycachingresponses,sometimeseliminatingnetworkrequestsentirely.

Forfullinformationonthespec,plusexamples,seehttps://jsonapi.org.

TutorialandDocumentation

Wantatutorialtogetstarted?ReadtheHowtoJSON:APILaraveltutorial.

FullpackagedocumentationisavailableonReadtheDocs.

Slack

JointheLaravelJSON:APIcommunityonSlack.

LaravelVersionsLaravelThisPackage^8.0^3.0^7.0^2.0^6.0^1.75.8.*^1.75.7.*^1.05.6.*^1.05.5.*^1.0

MakesureyouconsulttheUpgradeGuidewhenupgradingbetweenmajororpre-releaseversions.

License

ApacheLicense(Version2.0).PleaseseeLicenseFileformoreinformation.

Installation

Installationisviacomposer.Seethedocumentationforcompleteinstructions.

Contributing

Contributionsareabsolutelywelcome.Ideallysubmitapullrequest,evenmoreideallywithunittests.Pleasenotethefollowing:

BugFixes-submitapullrequestagainstthemasterbranch.Enhancements/NewFeatures-submitapullrequestagainstthedevelopbranch.

Werecommendsubmittinganissuebeforetakingthetimetoputtogetherapullrequest.

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论