How to use @api-platform/admin - 4 common examples

To help you get started, we’ve selected a few @api-platform/admin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Rebolon / php-sf-flex-webpack-encore-vuejs / assets / js / api-platform-admin-react / App.js View on Github external
const fetchWithAuth = (url, options = {}) => {
    if (!options.headers) options.headers = new Headers({ Accept: 'application/ld+json' });
    fetchHeaders(options)

    // fix https://github.com/api-platform/api-platform/issues/584
    if (apiPlatformPrefix) {
        url = url.replace(`${apiPlatformPrefix}${apiPlatformPrefix}/`, `${apiPlatformPrefix}/`)
    }

    return fetchHydra(url, options);
};
github silverbackis / ComponentsWebApp / admin / src / App.js View on Github external
const fetchHydra = (url, options = {}) => baseFetchHydra(url, {
  ...options,
  headers: new Headers(fetchHeaders),
});
const apiDocumentationParser = (entrypoint) => parseHydraDocumentation(entrypoint, { headers: new Headers(fetchHeaders) })
github silverbackis / ComponentsWebApp / admin / src / App.js View on Github external
api: result.api,
            customRoutes: [{
              props: {
                path: '/',
                render: () => ,
              },
            }],
          });

        default:
          return Promise.reject(result);
      }
    },
  );

const dataProvider = baseDataProvider(entrypoint, fetchHydra, apiDocumentationParser);

export default props => (
  
    
  
);

@api-platform/admin

Automatic administration interface for Hydra-enabled APIs.

MIT
Latest version published 14 days ago

Package Health Score

81 / 100
Full package analysis

Similar packages