Search by

jf / json-api

joaquinfq

Classes to implement APIs according to JSON API specification.

Package info

gitlab.com/jfphp/jfJsonApi

Homepage

Issues

pkg:composer/jf/json-api

Statistics

Installs: 1 141

Dependents: 0

Suggesters: 0

Stars: 0

1.3.7 2024-12-18 15:17 UTC

This package is auto-updated.

Last update: 2026-08-18 18:00:57 UTC


README

Classes to implement APIs according to JSON API specification.

Instalación

Control de versiones

Este proyecto puede ser descargado usando git. Para ello se debe ejecutar en una consola:

git clone https://www.gitlab.com/jfphp/json-api.git
cd json-api

Composer

Este proyecto usa como gestor de dependencias Composer el cual puede ser instalado siguiendo las instrucciones especificadas en la documentación oficial del proyecto.

Para instalar el paquete jf/json-api usando este manejador de paquetes se debe ejecutar:

composer require jf/json-api

Archivos

Clases

NombreDescripción
📖 jf\JsonApi\ABaseBase class for all classes in jf\JsonApi package.
📖 jf\JsonApi\ACollectionBase class for collections.
📖 jf\JsonApi\AExtrasBase class for classes that accept a list of values with unspecified attributes.
📖 jf\JsonApi\AttributesThe value of the attributes key MUST be an object (an attributes object).
📖 jf\JsonApi\ErrorA server MAY choose to stop processing as soon as a problem is encountered, or it MAY continue processing and encounter multiple problems.
📖 jf\JsonApi\ErrorLinkA links object containing error references.
📖 jf\JsonApi\ErrorSourceAn object containing references to the source of the error.
📖 jf\JsonApi\ErrorsCollection of errors.
📖 jf\JsonApi\JsonApiA JSON API document MAY include information about its implementation under a top level jsonapi member.
📖 jf\JsonApi\LinkEach member of a links object is a link.
📖 jf\JsonApi\LinksWhere specified, a links member can be used to represent links.
📖 jf\JsonApi\ManagerRequest and response manager.
📖 jf\JsonApi\MetaWhere specified, a meta member can be used to include non-standard meta-information.
📖 jf\JsonApi\PaginationPagination links for the primary data.
📖 jf\JsonApi\Query\FactoryFactory for handlers of query parameters.
📖 jf\JsonApi\Query\FieldsAllows you to select which attributes appear in the result.
📖 jf\JsonApi\Query\FilterConstruct the filter to use to restrict the result to the elements returned.
📖 jf\JsonApi\Query\IncludesIt is used to display the result of related resources.
📖 jf\JsonApi\Query\PageAllows you to paginate the list of results.
📖 jf\JsonApi\Query\SortAllows you to sort the results.
📖 jf\JsonApi\RelationshipRepresent references from the resource object in which it's defined to other resource objects.
📖 jf\JsonApi\RelationshipsThe value of the relationships key MUST be an object (a relationships object).
📖 jf\JsonApi\ResourceThe document's primary data is a representation of the resource or collection of resources targeted by a request.
📖 jf\JsonApi\ResourceIdentifierA resource identifier object is an object that identifies an individual resource.
📖 jf\JsonApi\ResourcesCollection of resources.
📖 jf\JsonApi\RootA JSON object MUST be at the root of every JSON API request and response containing data.
📖 jf\JsonApi\ValidationExceptionException thrown by default by the validator.
📖 jf\JsonApi\ValidatorValidates the request.

Interfaces

NombreDescripción
📖 jf\JsonApi\IResourceInterface for classes used as resources.
📖 jf\JsonApi\Query\IQueryInterface for query parsers.

Traits

NombreDescripción
📖 jf\JsonApi\TResourceTrait que implementa la interfaz jf\JsonApi\IResource.

Diagrama

Diagrama

Generado con ❤️ usando jfGeneratorDoc 0.1.0