Skip to content

Commit 2027975

Browse files
authored
Update README.md
1 parent c4e0070 commit 2027975

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

README.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,18 @@ yarn add strapi-plugin-tagsinput
2323

2424
## How to use
2525

26-
After installation, you can add tagsinput as custom field.
26+
After installation, you can add tagsinput as a custom field.
2727

2828
#### Suggestions for tag
2929

30-
While adding tagsInput, you will see `API URL` field.
30+
While adding tagsInput, you will see the `API URL` field.
3131

3232
If you want to use REST API for suggestions, then add your API url in this field.
3333

3434
**Notes:**
3535

36-
- If API domain is different, then full API URL is required. i.e `http://localhost:1337/api/v1/tags?fields[0]=name` (Make sure API CORS are enabled for your strapi domain in this case).
37-
- Otherwise add only path of API i.e `/api/v1/tags?fields[0]=name`
38-
- API response should contain `name` field.
39-
For example,
40-
41-
```
42-
[
43-
{ name: "tag1" },
44-
{ name: "tag2" }
45-
]
46-
```
36+
- If the API domain is different, then a full API URL is required. i.e. `http://localhost:1337/api/tags?fields[0]=name` (Make sure API CORS are enabled for your strapi domain in this case).
37+
- Otherwise, add only the path of API i.e `/api/tags?fields[0]=name`
4738

4839
## Showcase
4940

@@ -71,4 +62,4 @@ This repository is owned and maintained by the [Canopas team](https://canopas.co
7162

7263
## Licence
7364

74-
This repository licenced under [MIT](https://github.com/canopas/strapi-plugin-tagsinput/blob/main/LICENSE).
65+
This repository is licenced under [MIT](https://github.com/canopas/strapi-plugin-tagsinput/blob/main/LICENSE).

0 commit comments

Comments
 (0)