C#C
C#2y ago
7 replies
Alex

API Routes structure

Hello! I have user, user can have many favorite stations. User can add/remove station from favorites. What controller should I put these functionalities Users or Stations e.g. POST:/users/{id}/stations/favorite, body stationId or POST:/stations/favorite/{stationId}, body:userId?
Was this page helpful?