Closed Pipazoul closed 2 years ago
Can't find any image on this page : https://canographia.datagora.erasme.org/wp-json/wp/v2/evenement/
edit : @Pipazoul
edit2 : the only picture fount is acf.contact_image
which id is 3913
which brings to https://canographia.datagora.erasme.org/wp-json/wp/v2/media/3913
which brings to this final picture : https://canographia.datagora.erasme.org/wp-content/uploads/2022/06/porteur1.png
The only picture on the WP page (two events but only one has this kind of image)
The route should work (with blank images because I am unable to find them)
Can't find any image on this page : https://canographia.datagora.erasme.org/wp-json/wp/v2/evenement/
edit : @Pipazoul
edit2 : the only picture fount is
acf.contact_image
which id is3913
which brings tohttps://canographia.datagora.erasme.org/wp-json/wp/v2/media/3913
which brings to this final picture : https://canographia.datagora.erasme.org/wp-content/uploads/2022/06/porteur1.pngThe only picture on the WP page (two events but only one has this kind of image)
The images are stored as and id in acf.photos[arrayNum]
With the id you can request /wp-json/wp/v2/media/imageID
The url of the image will be found in this route in guid.rendered
for example
Should be done, now. @Pipazoul https://github.com/datatlas-erasme/back/commit/6a75d2bd1bdc7fcd025cdc0c13d922a7db89b0e8
Is your feature request related to a problem? Please describe. A new content type has been added on wordpress (evenement)
Describe the solution you'd like when called on route api/data/wordpress/canographia.datagora.erasme.org/wp-json/wp/v2/evenement/
The back should return :