there is a news system in the project, which is divided into international news, domestic news and industry news. It is stored in the database table bigclass, and international news is divided into financial news, sports news and entertainment news. Domestic news and industry news are also divided into many small categories, which are stored in the database table smallclass, all the news content is stored in the news table, and the news table has a smallclass_id associated with the table smallclass. If you need to query all the news in a small category, you can write:
http://www.example.com/api/smallclass/5/news
but what should I do if I want to query all the news under a certain category? There is no direct relationship between the news table and the bigclass table.