api-platform / core

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

entry point not configured correctly #2203

Closed Selion05 closed 3 years ago

Selion05 commented 6 years ago

I just added api platform to one of my projects with default recipes but the react admin says Unable to retrieve API documentation.

comparing my project to the default starter I noticed that the link to hydra doc is missing

{
  "data": {
    "@context": "/api/contexts/Entrypoint",
    "@id": "/api",
    "@type": "Entrypoint"
  },
  "status": 200,
  "statusText": "OK",
  "headers": {
    "content-type": "application/ld+json; charset=utf-8",
    "cache-control": "max-age=0, must-revalidate, private"
  },
  "config": {
    "transformRequest": {},
    "transformResponse": {},
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "headers": {
      "Accept": "application/json, text/plain, */*"
    },
    "method": "get",
    "url": "http://kundenportal/api"
  },
  "request": {}
}

any ideas how to solve this?

soyuka commented 3 years ago

Greetings! We appreciate your concern but weren't able to reproduce this issue or it is more of a question. As described in the API Platform contributing guide, we use GitHub issues for bugs and feature requests only.

For support question ("How To", usage advice, or troubleshooting your own code), you have several options:

Feel free reach one of the support channels above. In the meantime we're closing this issue.