I have created a number of datatype files that I have imported into my api.raml file. I would like to use elements of each as for different endpoints. I have tried a number of different approaches that have failed:
Create another datatype file that could be used to construct a tailored response for each endpoint. It would have to have duplicate entries with other datatype files which does not make sense.
It is not possible to use “uses” and break this into libraries or in a datatype file otherwise reference other files that I have found out.
Here is a conceptual example (that does not show errors in Studio - but of course does in the API Manger):
responses: 200: body: application/json: type: object properties: studentID: publishedInstructor.instructorID courses: courseinformation.courseID
In other words, I want a response that includes the instructorID from the publishedInstructor datatype file (I have messed with capitalization without fixing this (i.e., the datatype files have an initial capitol). For this instructorID, I would like to return an array of course information.