Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ strapi ts:generate-types
* **strapi ts:generate-types --out-dir &#60;path&#62;** or **strapi ts:generate-types -o &#60;path&#62;**<br/>
Generate typings specifying the output directory in which the file will be created.
* **strapi ts:generate-types --file &#60;filename&#62;** or **strapi ts:generate-types -f &#60;filename&#62;**<br/>
Generate typings specifiying the name of the file to contain the types declarations.
Generate typings specifying the name of the file to contain the types declarations.

## strapi routes:list

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ query {
strapiCategory(data: { elemMatch: { id: { eq: 1 } } }) {
data {
id
atrributes {
attributes {
name
restaurants {
name
Expand Down Expand Up @@ -216,7 +216,7 @@ const query = graphql`
strapiCategory(data: { elemMatch: { id: { eq: 1 } } }) {
data {
id
atrributes {
attributes {
name
restaurants {
id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func postD() {
resp, error := http.Post("http://localhost:1337/api/restaurants", "application/json", responseBody)
//Handle Error
if error != nil {
log.Fatalf("An Error Occured %v", error)
log.Fatalf("An Error Occurred %v", error)
}
defer resp.Body.Close()
//Read the response body
Expand All @@ -195,7 +195,7 @@ PUT Request is sligtly different as we need to target the particular thing we wa

```go
putRest, _ := json.Marshal(map[string]string {
"name": "Resturant Homes",
"name": "Restaurant Homes",
})
client := &http.Client{}
url := "http://localhost:1337/api/restaurants/1"
Expand All @@ -209,7 +209,7 @@ req.Header.Set("Content-Type", "application/json")
```json
{
"id": 1,
"name": "Resturant Homes",
"name": "Restaurant Homes",
"description": "Welcome to Biscotte restaurant! Restaurant Biscotte offers a cuisine based on fresh, quality products, often local, organic when possible, and always produced by passionate producers.",
"published_at": "2021-03-07T10:10:46.949Z",
"created_at": "2021-03-07T10:08:53.929Z",
Expand Down Expand Up @@ -290,7 +290,7 @@ func postD() {
}
func putD() {
putRest, _ := json.Marshal(map[string]string{
"name": "Resturant Homes",
"name": "Restaurant Homes",
})
client := &http.Client{}
url := "http://localhost:1337/api/restaurants/1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ postRestaurant();
Execute a `PUT` request on the `restaurant` collection type in order to update the category of a restaurant.

Be sure that you activated the `update` permission for the `restaurant` collection type.
PUT Request is sligtly different as we need to target the particular entry we want update. We do this by first making a request to http://localhost:1337/api/restaurants/1 and then update what we want to update. In this example, we are going to update "Biscotte Restaurant" to "Femoni Kitchen".
PUT Request is slightly different as we need to target the particular entry we want update. We do this by first making a request to http://localhost:1337/api/restaurants/1 and then update what we want to update. In this example, we are going to update "Biscotte Restaurant" to "Femoni Kitchen".

:::: api-call
::: request Example PUT request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ Each part of Strapi's back end can be customized:

- the [responses](/developer-docs/latest/development/backend-customization/requests-responses.md#responses) sent to the application that sent the request,

- and the [webhooks](/developer-docs/latest/development/backend-customization/webhooks.md) that are used to notify other applications of events that occured.
- and the [webhooks](/developer-docs/latest/development/backend-customization/webhooks.md) that are used to notify other applications of events that occurred.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ A plugin's Content-Types can be extended in 2 ways: using the programmatic inter
The final schema of the content-types depends on the following loading order:

1. the content-types of the original plugin,
2. the content-types overriden by the declarations in the [schema](/developer-docs/latest/development/backend-customization/models.md#model-schema) defined in `./src/extensions/plugin-name/content-types/content-type-name/schema.json`
2. the content-types overridden by the declarations in the [schema](/developer-docs/latest/development/backend-customization/models.md#model-schema) defined in `./src/extensions/plugin-name/content-types/content-type-name/schema.json`
3. the content-types declarations in the [`content-types` key exported from `strapi-server.js`](/developer-docs/latest/developer-resources/plugin-api-reference/server.md#content-types)
4. the content-types declarations in the [`register()` function](/developer-docs/latest/setup-deployment-guides/configurations/optional/functions.md#register) of the Strapi application

Expand Down
4 changes: 2 additions & 2 deletions docs/developer-docs/latest/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ The quick start installation sets up Strapi with a SQLite database. Other databa

Once the installation is complete, your browser automatically opens a new tab.

By completing the form, you create your own account. Once done, you become the first administator user of this Strapi application. Welcome aboard, commander!
By completing the form, you create your own account. Once done, you become the first administrator user of this Strapi application. Welcome aboard, commander!

You now have access to the [admin panel](http://localhost:1337/admin):

Expand Down Expand Up @@ -351,7 +351,7 @@ During the installation, when terminal asks `Choose your installation type`: sel

Once the installation is complete, your browser automatically opens a tab at ([http://localhost:1337/admin/auth/register-admin](http://localhost:1337/admin/auth/register-admin)). It's for Strapi's admin panel, the back end of your application.

By completing the form in the admin panel tab, you create your own account. Once done, you become the first administator user of this Strapi application. Welcome aboard, commander!
By completing the form in the admin panel tab, you create your own account. Once done, you become the first administrator user of this Strapi application. Welcome aboard, commander!

Now, open [http://localhost:3000](http://localhost:3000) in another tab. This is the front end of your application, and you can already see the Next blog in action.

Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/latest/guides/count-graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ And tada, you can now request the `count` of your Content Type.

- Count all restaurants that have `_3rd` as district value.

Based on the [FoodAdvisor](https://github.com/strapi/foodadvisor) restraurant model.
Based on the [FoodAdvisor](https://github.com/strapi/foodadvisor) restaurant model.

```
{
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/latest/guides/secure-your-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ npm install sqreen

::::

## Start your application programmaticaly
## Start your application programmatically

We will have to require the Sqreen node_module in the file we use to start Strapi.

Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/latest/guides/unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The whole file will look like this:

### Strapi instance

In order to test anything we need to have a strapi instance that runs in the testing eviroment,
In order to test anything we need to have a strapi instance that runs in the testing environment,
basically we want to get instance of strapi app as object, similar like creating an instance for [process manager](process-manager.md).

These tasks require adding some files - let's create a folder `tests` where all the tests will be put and inside it, next to folder `helpers` where main Strapi helper will be in file strapi.js.
Expand Down
2 changes: 1 addition & 1 deletion docs/developer-docs/latest/plugins/users-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export default ({ env }) => ({
</code-group>

:::tip
Later on you will give this url to your provider. <br> For development, some providers accept the use of localhost urls but many don't. In this case we recommand to use [ngrok](https://ngrok.com/docs) (`ngrok http 1337`) that will make a proxy tunnel from a url it created to your localhost url (ex: `url: env('', 'https://5299e8514242.ngrok.io'),`).
Later on you will give this url to your provider. <br> For development, some providers accept the use of localhost urls but many don't. In this case we recommend to use [ngrok](https://ngrok.com/docs) (`ngrok http 1337`) that will make a proxy tunnel from a url it created to your localhost url (ex: `url: env('', 'https://5299e8514242.ngrok.io'),`).
:::

#### Setting up the provider - examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Cron jobs - Strapi Developer Docs
description: Strapi allows you to configure cron jobs for execution at specific dates and times, with optional reccurence rules.
description: Strapi allows you to configure cron jobs for execution at specific dates and times, with optional reoccurrence rules.
canonicalUrl: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/cronjobs.html
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default ({ env }) => ({

### Casting environment variables

The `env()` utility can be used to cast environment varibles to different types:
The `env()` utility can be used to cast environment variables to different types:

```js
// Returns the env if defined without casting it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The [GraphQL plugin](/developer-docs/latest/plugins/graphql.md) has the followin
| Parameter | Description | Type | Default |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ------- |
| `apolloServer` | Additional configuration for [`ApolloServer`](https://www.apollographql.com/docs/apollo-server/api/apollo-server/#apolloserver). | Object | `{}` |
| `artifacts` | Object containing filepaths, defining where to store generated articats. Can include the following properties: <ul><li>`schema`: path to the generated GraphQL schema file</li><li>`typegen`: path to generated TypeScript types</li></ul>Only works if `generateArtifacts` is set to `true`. | Object | <ul><li>`schema: false`</li><li>`typegen: false`</li></ul> |
| `artifacts` | Object containing filepaths, defining where to store generated artifacts. Can include the following properties: <ul><li>`schema`: path to the generated GraphQL schema file</li><li>`typegen`: path to generated TypeScript types</li></ul>Only works if `generateArtifacts` is set to `true`. | Object | <ul><li>`schema: false`</li><li>`typegen: false`</li></ul> |
| `defaultLimit` | Default value for [the `pagination[limit]` parameter](/developer-docs/latest/developer-resources/database-apis-reference/graphql-api.md#pagination-by-offset) used in API calls | Integer | 100 |
| `depthLimit` | Limits the [complexity of GraphQL queries](https://www.npmjs.com/package/graphql-depth-limit). | Integer | `10` |
| `endpoint` | The URL path on which the plugin is exposed | String | `/graphql` |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Public assets configuration - Strapi Developer Docs
description: The public folder of Strapi is used for static files that you want to make accesible to the outside world.
description: The public folder of Strapi is used for static files that you want to make accessible to the outside world.
canonicalUrl: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/public-assets.html
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Single Sign-On (SSO) - Strapi Developer Docs
description: Strapi's SSO allows you to configure additional sign-in and sign-up methods for your administration panel. It requires an Entreprise Edition with a Gold plan.
description: Strapi's SSO allows you to configure additional sign-in and sign-up methods for your administration panel. It requires an Enterprise Edition with a Gold plan.
sidebarDepth: 3
canonicalUrl: https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/optional/sso.html
---
Expand Down Expand Up @@ -111,7 +111,7 @@ Its signature is the following: `void done(error: any, data: object);` and it fo

- If `error` is not set to `null`, then the data sent is ignored, and the controller will throw an error.
- If the SSO's auto-registration feature is disabled, then the `data` object only need to be composed of an `email` property.
- If the SSO's auto-registration feature is enabled, then you will need to define (in addition to the `email`) either a `username` property or both `firstname` and `lastname` within the `data` oject.
- If the SSO's auto-registration feature is enabled, then you will need to define (in addition to the `email`) either a `username` property or both `firstname` and `lastname` within the `data` object.

### Adding a provider

Expand Down