Display list of topics by array of topics ids

In our company we use discourse for everyday business.
Discourse is deeply integrated in our erp software.
For better organization of topics,our erp holds many kind of topics ids and posts ids.
In some parts of our app we want to show user list of specific topics in discource. (filtered by our citiera).
In our app there is form which users fills and our app has array of filtered topics.

Is there a way to send query string or formdata to discource endpoint among with array of wanted topics ids and to get list of topics in discource. (ideally with predefined order or ordered as array was)

Same needs we have for getting specific lists of posts by providing array of topics ids.

저도 이 기능이 필요합니다. 현재는 이렇게 하고 있는데, 시간이 너무 오래 걸립니다.

    const selectedTopics = this.selectedTopics
     //eat topics as ids and let out real topics
     this.selectedTopicsID.forEach(function(tid,index){
       Topic.find(tid,{}).then(results => {
         selectedTopics.pushObject(results)
       })
     });

곧 플러그인의 listcontroller를 다시 열어 새로운 엔드포인트를 추가하고, 프론트엔드 초기화 파일에서 topic-list를 다시 열어 아래 링크와 비슷한 작업을 하려고 합니다:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/models/topic-list.js.es6#L129
하지만 더 쉬운 방법이 있을 거라고 생각합니다. id로 주제를 일괄 가져오는 엔드포인트가 아직 정말 없는 건가요?
도움을 주시면 정말 감사하겠습니다 :smiley:
수정: 제가 이 문제를 해결한 방법은 다음과 같습니다:

이렇게 사용할 수 있습니다.

import TopicList from 'discourse/models/topic-list';
    const selectedTopics = this.selectedTopics
    //eat topics as ids
    TopicList.topics_array(this.selectedTopicsID).then(results => selectedTopics.pushObjects(results.topic_list.topics))

현재 이 방식은 “실제” Topic 객체를 반환하지 않는다는 단점이 있지만, 아래와 같은 한 줄을 추가하면 해결될 것 같습니다:

이것이 올바른 방법인지, 그리고 보안에 문제가 생기는지는 여전히 확신이 서지 않습니다.
또 할 수 있는 일: 먼저 스토어에 레코드가 이미 있는지 확인하고, 없는 것만 fromMap으로 로드하는 것입니다. 아래와 유사하게:

어쨌든 여기서는 말이 너무 길어지는 것 같습니다 :smiley:
이것이 제 최종 해결책입니다. 오늘은 여기까지 하겠습니다: