You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin/components.md
+29-13Lines changed: 29 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,9 @@
4
4
5
5
### AdminGuesser
6
6
7
-
`<AdminGuesser>` creates a complete Admin Context and Interface, rendering automatically an [`<AdminUI>` component](https://marmelab.com/react-admin/Admin.html#unplugging-the-admin-using-admincontext-and-adminui) for resources exposed by a web API documented with any format supported by `@api-platform/api-doc-parser` (for Hydra documented APIs, use the [`<HydraAdmin>`component](admin/components.md#hydraadmin) instead). It also creates a [`schemaAnalyzer`](admin/components.md#schemaAnalyzer) context, where the schemaAnalyzer service (for getting information about the provided API documentation) is stored.
7
+
`<AdminGuesser>` creates a complete Admin Context and Interface, rendering automatically an [`<AdminUI>` component](https://marmelab.com/react-admin/Admin.html#unplugging-the-admin-using-admincontext-and-adminui) for resources exposed by a web API documented with any format supported by `@api-platform/api-doc-parser` (for Hydra documented APIs,
8
+
use the [`<HydraAdmin>`component](admin/components.md#hydraadmin) instead). It also creates a [`schemaAnalyzer`](admin/components.md#schemaAnalyzer) context, where the schemaAnalyzer service (for getting information about the provided API documentation) is stored.
9
+
8
10
The `<AdminGuesser>` renders all exposed resources by default, but you can choose what resource you want to render by passing [`<ResourceGuesser>` components](admin/components/#resourceguesser) as children.
9
11
Deprecated resources are hidden by default, but you can add them back using an explicit `<ResourceGuesser>` component.
| dataProvider | object or function | - | yes | communicates with your API |
@@ -41,7 +44,8 @@ export default App;
41
44
42
45
### ResourceGuesser
43
46
44
-
Based on React-Admin's [`<Resource>` component](https://marmelab.com/react-admin/Resource.html), the ResourceGuesser provides default props [`<CreateGuesser>`](admin/components.md#createguesser), [`<ListGuesser>`](admin/components.md#listguesser), [`<EditGuesser>`](admin/components.md#editguesser) and [`<ShowGuesser>`](admin/components.md#showguesser). Otherwise you can pass it your own CRUD components using `create`, `list`, `edit`, `show` props.
47
+
Based on React-Admin's [`<Resource>` component](https://marmelab.com/react-admin/Resource.html), the ResourceGuesser provides default props [`<CreateGuesser>`](admin/components.md#createguesser), [`<ListGuesser>`](admin/components.md#listguesser), [`<EditGuesser>`](admin/components.md#editguesser) and [`<ShowGuesser>`](admin/components.md#showguesser).
48
+
Otherwise you can pass it your own CRUD components using `create`, `list`, `edit`, `show` props.
| name | string | - | yes | endpoint of the resource |
@@ -77,8 +82,11 @@ You can also use props accepted by React-Admin's [`<Resource>` component](https:
77
82
78
83
### ListGuesser
79
84
80
-
Based on React-Admin's [`<List>`](https://marmelab.com/react-admin/List.html), ListGuesser displays a list of resources in a [`<Datagrid>`](https://marmelab.com/react-admin/List.html#the-datagrid-component), according to children passed to it (usually [`<FieldGuesser>`](admin/components/#fieldguesser) or any [`field` component](https://marmelab.com/react-admin/Fields.html#basic-fields) available in React-Admin).
85
+
Based on React-Admin's [`<List>`](https://marmelab.com/react-admin/List.html), ListGuesser displays a list of resources in a [`<Datagrid>`](https://marmelab.com/react-admin/List.html#the-datagrid-component), according to children passed to it (usually [`<FieldGuesser>`](admin/components/#fieldguesser) or any [`field` component](https://marmelab.com/react-admin/Fields.html#basic-fields)
86
+
available in React-Admin).
87
+
81
88
Use `hasShow` and `hasEdit` props if you want to display `show` and `edit` buttons (both set to `true` by default).
89
+
82
90
By default, `<ListGuesser>` comes with [`<Pagination>`](admin/components.md#pagination).
| source | string | - | yes | endpoint of the resource |
@@ -263,7 +278,8 @@ You can also use props accepted by React-Admin's [`Basic Fields`](https://marmel
263
278
264
279
Uses React-Admin's [`<ReferenceInput>`](https://marmelab.com/react-admin/Inputs.html#referenceinput) to generate inputs according to your API documentation (e.g. number HTML input for numbers, checkbox for booleans, selectbox for relationships...)
Copy file name to clipboardExpand all lines: admin/customizing.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -185,4 +185,4 @@ For instance, using an autocomplete input is straightforward, [checkout the dedi
185
185
API Platform is built on top of [React Admin](https://marmelab.com/react-admin/).
186
186
You can use all the features provided by the underlying library with API Platform Admin, including support for [file upload](https://marmelab.com/react-admin/DataProviders.html#decorating-your-data-provider-example-of-file-upload), [authentication](https://marmelab.com/react-admin/Authentication.html), [authorization](https://marmelab.com/react-admin/Authorization.html) and deeper customization.
187
187
188
-
To learn more about these capabilities, refer to [the React Admin documentation](https://marmelab.com/react-admin/).
188
+
To learn more about these capabilities, refer to [the React Admin documentation](https://marmelab.com/react-admin/).
Copy file name to clipboardExpand all lines: admin/index.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ API Platform Admin is a tool to automatically create a beautiful and fully featu
6
6
for any API supporting [the Hydra Core Vocabulary](http://www.hydra-cg.com/) or other API specification formats supported by [`@api-platform/api-doc-parser`](https://github.com/api-platform/api-doc-parser) (experimental support for [OpenAPI](https://www.openapis.org/) is also available).
7
7
8
8
API Platform Admin is the perfect companion of APIs created
9
-
using [the API Platform framework](https://api-platform.com), but also supports APIs written with any other programming language or framework as long as they expose a standard Hydra API documentation.
9
+
using [the API Platform framework](https://api-platform.com), but also supports APIs written with any other programming language or framework as long as they expose a standard Hydra API documentation.
10
10
11
11
API Platform Admin is a 100% standalone Single-Page-Application with no coupling to the server part,
12
12
according to the API-first paradigm.
@@ -21,7 +21,7 @@ You can **customize everything** by using provided React Admin and [Material UI
21
21
* Automatically generates an admin interface for all the resources of the API thanks to hypermedia features of Hydra
22
22
* Generates 'list', 'create', 'show', and 'edit' screens, as well as a delete button
23
23
* Generates suitable inputs and fields according to the API doc (e.g. number HTML input for numbers, checkbox for booleans, selectbox for relationships...)
24
-
* Generates suitable inputs and fields according to Schema.org types if available (e.g. email field for http://schema.org/email)
24
+
* Generates suitable inputs and fields according to Schema.org types if available (e.g. email field for `http://schema.org/email`)
0 commit comments