Hello @milosvu,
You need to send the document type in API query like here. In getByUID
, you need to send two parameters: one is document type and another one is uid. It is mandatory to send document type because different custom types can have the same uid.
Now for the another point of having multiple document types for the same level within URL structure:
(I'm assuming you are using nuxt framework)
-
If DOM structure (rendering) is same for all URLs of types and Uid combination.
For example: If you have folder structure like: /pages/:document-type/:uid
, and two URLs like /type1/uid1
and /type2/uid2
, then after getting different data results from getByUid
query, same redering can be applied.
-
If DOM structure (rendering) is not the same for all uid and document types combinations, you need to fix the document type in URL like /pages/type1/:uid
, and /pages/type2/:uid
.
It would be better if you can share the code with me.
Let me know if you have any other doubt.
Priyanka