• Stars
    star
    295
  • Rank 140,902 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Demo app for the API Platform framework

API Platform

This application is a demonstration for the API Platform Framework. Try it online at https://demo.api-platform.com.

GitHub Actions GitHub Actions

Install

Read the official "Getting Started" guide.

$ git clone https://github.com/api-platform/demo.git
$ cd demo
$ docker compose up -d

You can now go to https://localhost

What Can I Find In This Demo?

This demo application contains several things you may be interested.

API Testing

All entities used in this project are thoroughly tested. Each test class extends the ApiTestCase, which contains specific API assertions. It will make your tests much more straightforward than using the standard WebTestCase provided by Symfony.

Custom Data Provider

This example shows how to expose a CSV file as a standard API Platform endpoint. It also shows how to make this endpoint paginated with an extension.

Overriding the OpenAPI Specification

This example shows how to document an API endpoint that isn't handled by API Platform. This "legacy" endpoint is listed and testable like the other ones thanks to the Swagger interface.

Custom Doctrine ORM Filter

This example shows how to implement a custom API filter using Doctrine. It allows to filter archived items with a GET parameter. There are three modes:

  • no filter (default)
  • only archived item (?archived=1)
  • exclude archived items (?archived=0)

Links:

Contributing

Read the contributing guide

Credits

Created by KΓ©vin Dunglas. Commercial support available at Les-Tilleuls.coop.

More Repositories

1

api-platform

Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
TypeScript
8,306
star
2

core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
PHP
2,366
star
3

api-pack

A Symfony pack for API Platform
526
star
4

admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
TypeScript
469
star
5

schema-generator

PHP Model Scaffolding from Schema.org and other RDF vocabularies
PHP
452
star
6

create-client

Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
TypeScript
365
star
7

docs

API Platform documentation
163
star
8

api-doc-parser

Transforms a Hydra API doc in an intermediate representation that can be used for various tasks such as creating smart API clients, scaffolding code or building administration interfaces.
TypeScript
99
star
9

activity-pub

API Platform ActivityPub Support
PHP
73
star
10

website

The API Platform website
TypeScript
48
star
11

laravel

[READ ONLY] API Platform for Laravel
PHP
45
star
12

postman-collection-generator

Generator for Postman collection based on API Platform
PHP
30
star
13

admin-pack

A Symfony pack for API Platform Admin
23
star
14

openapi

[READ ONLY] API Platform OpenAPI component
PHP
13
star
15

docker-compose-prod

Shell
13
star
16

esa

Edge side APIs for front-end developpers
CSS
8
star
17

json-schema

[READ ONLY] Generate a JSON Schema from a PHP class
PHP
7
star
18

api-platform-doc-parsing-check

API-Platform Documentation parsing check
JavaScript
6
star
19

symfony

[READ ONLY] API Platform for Symfony
PHP
6
star
20

symfonycon-berlin-workshop-eod

SymfonyCon Berlin Workshop End of the day repository
PHP
5
star
21

docs-website

Documentation website
CSS
5
star
22

doctrine-orm

[READ ONLY] Doctrine ORM support for API Platform
PHP
4
star
23

.github

Default community health files
3
star
24

jsonld

[READ ONLY] API Platform JSON-LD component
PHP
3
star
25

graphql

[READ ONLY] API Platform GraphQL component
PHP
2
star
26

ramsey-uuid

[READ ONLY] API Platform Ramsey UUID component
PHP
2
star
27

http-cache

[READ ONLY] API Platform HttpCache component
PHP
2
star
28

doctrine-common

[READ ONLY] Doctrine Common support for API Platform
PHP
2
star
29

metadata

[READ ONLY] API Resource-oriented metadata attributes and factories
PHP
2
star
30

hydra

[READ ONLY] API Platform Hydra component
PHP
2
star
31

serializer

[READ ONLY] API Platform Serializer component
PHP
2
star
32

documentation

[READ ONLY] API Platform Documentation component
PHP
2
star
33

state

[READ ONLY] API Platform State component
PHP
2
star
34

elasticsearch

[READ ONLY] API Platform Elasticsearch support
PHP
2
star
35

validator

[READ ONLY] API Platform Validator component
PHP
2
star
36

parameter-validator

[READ ONLY] API Platform Parameter Validator component
PHP
1
star
37

doctrine-odm

[READ ONLY] Doctrine MongoDB ODM support for API Platform
PHP
1
star
38

admin-meta

A meta package to install API Platform Admin in Symfony projects
1
star