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-landing&p=1713",
"rendered":"https:\/\/somcomunitats.coop\/?post_type=rest_ce_community&p=1709" "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",
"title":{ "link": "https:\/\/somcomunitats.coop\/?post_type=rest-ce-landing&p=1713",
"rendered":"Comunitat REST de prova" "title": {
}, "raw": "test-desde-bash",
"content":{ "rendered": "test-desde-bash"
"rendered":"", },
"protected":false "content": {
}, "raw": "",
"author":5, "rendered": "",
"comment_status":"open", "protected": false,
"ping_status":"closed", "block_version": 0
"template":"", },
"odoo_company_id":"5", "author": 5,
"_links":{ "comment_status": "open",
"self":[ "ping_status": "closed",
{ "template": "",
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest_ce_community\/1709" "permalink_template": "https:\/\/somcomunitats.coop\/rest-ce-landing\/%pagename%\/",
} "generated_slug": "test-desde-bash",
], "odoo_company_id": "5",
"collection":[ "_links": {
{ "self": [{
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest_ce_community" "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
} }],
], "collection": [{
"about":[ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing"
{ }],
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/types\/rest_ce_community" "about": [{
} "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/types\/rest-ce-landing"
], }],
"author":[ "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": [{
], "embeddable": true,
"replies":[ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/comments?post=1713"
{ }],
"embeddable":true, "wp:attachment": [{
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/comments?post=1709" "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/media?parent=1713"
} }],
], "wp:action-publish": [{
"wp:attachment":[ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
{ }],
"href":"https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/media?parent=1709" "wp:action-unfiltered-html": [{
} "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
], }],
"curies":[ "wp:action-assign-author": [{
{ "href": "https:\/\/somcomunitats.coop\/wp-json\/wp\/v2\/rest-ce-landing\/1713"
"name":"wp", }],
"href":"https:\/\/api.w.org\/{rel}", "curies": [{
"templated":true "name": "wp",
} "href": "https:\/\/api.w.org\/{rel}",
] "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"
} }
... ...
......