Restapi additional metadata (notes)

Is it possible to get 'image' field of restAPI without full objects?

 https://api.medialog.no/steder/@search?portal_type=place&fullobjects=1

works, but

https://api.medialog.no/steder/@search?portal_type=place&metadata_fields=image

Returns error:

{  "message": "No converter for making <plone.namedfile.file.NamedBlobImage object at 0x7fbf29b7c488 oid 0x7daac in <Connection at 7fbf372850d0>> (<class 'plone.namedfile.file.NamedBlobImage'>) JSON compatible.",   "type": "TypeError" }

You are searching the Plone catalog and metadata_fields are those fields marked as Metadata Columns in the Plone Catalog.

Look at the note in the REST API documentation:
https://plonerestapi.readthedocs.io/en/latest/searching.html#retrieving-additional-metadata

After some googling, it looks like the only workaround for this is to use @id and append /@@images/image/my_scale

About the 'additional notes', I just want to mention (in case someone else runs into similar things'

  1. If you (accidentially) name a field the same as an existing (lets say you add a field 'location', this will happen

a) If you request 'fullobjects=1', you request will include the field 'location' (with the value from the 'new field'.
b) If you request the field by using 'metadata_fields=location', it will return 'null' (unless you have also set the 'original field', I assume)

  1. If you use a 'Choice' widget, this happens

a) You use 'full objects' and you will get field, and use your value by myfield'['token']
b) You request 'metadata_fields=myfield" and you only get the value 'in return'

I also want to mention that if you try to get (folder) items, restapi returns a 'LazyMap' instead of the items.

If you use 'fullobjects', items are returned as expected