Update WPCT REST CE Landing API authored by Pau Pulido's avatar Pau Pulido
...@@ -6,73 +6,73 @@ Retorna la informació de tots els posts de les comunitats energètiques. Si afe ...@@ -6,73 +6,73 @@ Retorna la informació de tots els posts de les comunitats energètiques. Si afe
```json ```json
{ {
"id": 1713,
"id":1709, "date": "2023-03-02T11:46:47",
"date":"2023-01-05T12:08:34", "date_gmt": "2023-03-02T11:46:47",
"date_gmt":"2023-01-05T12:08:34",
"guid": { "guid": {
"rendered":"https:\/\/somcomunitats.coop\/?post_type=rest_ce_community&p=1709" "rendered": "https:\/\/somcomunitats.coop\/?post_type=rest-ce-landing&p=1713",
"raw": "https:\/\/somcomunitats.coop\/?post_type=rest-ce-landing&p=1713"
}, },
"modified":"2023-03-01T12:18:21", "modified": "2023-03-02T11:46:47",
"modified_gmt":"2023-03-01T12:18:21", "modified_gmt": "2023-03-02T11:46:47",
"slug":"comunitat-rest-de-prova", "password": "",
"status":"publish", "slug": "",
"type":"rest_ce_community", "status": "draft",
"link":"https:\/\/somcomunitats.coop\/rest-ce\/comunitat-rest-de-prova\/", "type": "rest-ce-landing",
"link": "https:\/\/somcomunitats.coop\/?post_type=rest-ce-landing&p=1713",
"title": { "title": {
"rendered":"Comunitat REST de prova" "raw": "test-desde-bash",
"rendered": "test-desde-bash"
}, },
"content": { "content": {
"raw": "",
"rendered": "", "rendered": "",
"protected":false "protected": false,
"block_version": 0
}, },
"author": 5, "author": 5,
"comment_status": "open", "comment_status": "open",
"ping_status": "closed", "ping_status": "closed",
"template": "", "template": "",
"permalink_template": "https:\/\/somcomunitats.coop\/rest-ce-landing\/%pagename%\/",
"generated_slug": "test-desde-bash",
"odoo_company_id": "5", "odoo_company_id": "5",
"_links": { "_links": {
"self":[ "self": [{
{ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest_ce_community\/1709" }],
} "collection": [{
], "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing"
"collection":[ }],
{ "about": [{
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest_ce_community" "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/types\/rest-ce-landing"
} }],
], "author": [{
"about":[
{
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/types\/rest_ce_community"
}
],
"author":[
{
"embeddable": true, "embeddable": true,
"href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/users\/5" "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/users\/5"
} }],
], "replies": [{
"replies":[
{
"embeddable": true, "embeddable": true,
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/comments?post=1709" "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/comments?post=1713"
} }],
], "wp:attachment": [{
"wp:attachment":[ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/media?parent=1713"
{ }],
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/media?parent=1709" "wp:action-publish": [{
} "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
], }],
"curies":[ "wp:action-unfiltered-html": [{
{ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
}],
"wp:action-assign-author": [{
"href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
}],
"curies": [{
"name": "wp", "name": "wp",
"href": "https:\/\/api.w.org\/{rel}", "href": "https:\/\/api.w.org\/{rel}",
"templated": true "templated": true
}]
} }
]
}
} }
...@@ -102,7 +102,7 @@ Per crear una CE, cal passar a la petició POST a https://somcomunitats.coop/wp- ...@@ -102,7 +102,7 @@ Per crear una CE, cal passar a la petició POST a https://somcomunitats.coop/wp-
```json ```json
{ {
title:"títol del post", "title":"títol del post",
"odoo_company_id":"número de la company" "odoo_company_id":"número de la company"
} }
... ...
......