leroyfal / demo

Demo app for the API Platform framework

Home Page:https://demo.api-platform.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Platform Demo

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

Install

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

Then load the demo fixtures:

$ docker-compose exec php composer load-fixtures

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.

Contributing

About

Demo app for the API Platform framework

https://demo.api-platform.com

License:MIT License


Languages

Language:JavaScript 69.8%Language:PHP 21.8%Language:Dockerfile 2.6%Language:CSS 2.0%Language:Shell 1.9%Language:HTML 1.8%Language:Gherkin 0.2%