| ... | ... | @@ -107,14 +107,12 @@ Per crear una CE, cal passar a la petició POST a https://somcomunitats.coop/wp- |
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
En el següent exemple creem un nou post per una nova CE, amb títol "test-desde-bash" i associat a la company 5. Hem de passar el token obtingut un cop s'ha realitzat l'autenticació amb JWT.
|
|
|
|
En el següent exemple creem un nou post per una nova CE, amb títol "test-desde-bash" i associat a la company 5. Hem de passar els següent header:
|
|
|
|
|
|
|
|
```
|
|
|
|
Content-Type: application/json
|
|
|
|
Authorization:Bearer $token
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
headers:'Content-Type: application/json',
|
|
|
|
"Authorization:Bearer $token",
|
|
|
|
"domain": "/wp/v2/rest_ce_community"
|
|
|
|
}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
| ... | ... | |
| ... | ... | |