Using it via the UI on the openHABian machine or via SSH terminal and curl, I get the same error:
curl -X GET --header "Accept: application/json" "http://192.168.1.5:8080/rest/things/smart_plug_12" -u openhab:openhab
"{\"error\":{\"message\":\"UID must have at least 3 segments: [smart_plug_12]\",\"http-code\":500,\"exception\":{\"class\":\"java.lang.IllegalArgumentException\",\"message\":\"UID must have at least 3 segments: [smart_plug_12]\",\"localized-message\":\"UID must have at least 3 segments: [smart_plug_12]\"}}}"
Just to provide some elaboration, the UID of a Thing has at a minimum of 4 segments. Things that work with a bridge have four. The segments are separated by :.
For a stand alone Thing the UID follows <binding_id>:<type_id>:<thing_id>. For a Thing that is under a Bridge the UID follows <binding_id>:<type_id>:<thinkg_id_from_bridge>:<thing_id>. Given mqtt:broker:mosquitto as the Thing UID for the MQTT Broker Thing (i.e. the Bridge), mqtt:topic:mosquitto:smart_plug_12 would be a UID.
All three/four+ segements make up the UID. You can’t just use the last part.