api-platform / core

The server component of API Platform: hypermedia and GraphQL APIs in minutes
https://api-platform.com
MIT License
2.4k stars 859 forks source link

How to configure the entrypoint ? /api/index.json leads to a 404 #1618

Closed Rebolon closed 6 years ago

Rebolon commented 6 years ago

I'm trying to install the admin react but i have a problem with the uri of the entrypoint :

Where can i setup the entrypoint ? what's wrong with my configuration ?

System : Symfony4 with Flex, ApiPlatform on master branch api_platform.yaml :

api_platform:
    title: 'My comics library'
    description: 'Demo of an API built with Api-Platform v2 (use REST or GraphQL). My comics library allow to manage your comics collection in a simple way'
    version: '1.0.0'
    mapping:
        paths: ['%kernel.project_dir%/src/Entity']
    formats:
        jsonld:  ['application/ld+json']
        json:    ['application/json']
        html:    ['text/html']
    graphql:
        graphiql:
            enabled: true

And annotations in entities.

Available project here https://github.com/Rebolon/php-sf-flex-webpack-encore-vuejs/tree/feature/react-admin

Rebolon commented 6 years ago

wrong project, going to api-platform/api-platform

Rebolon commented 6 years ago

moved here https://github.com/api-platform/api-platform/issues/502