has an endpoint for creating posts like this:
                  
                  
                  api/blog/posts/ => POST REQUEST
                  
                  
                  And lets say our posts could have categories, Do you prefer to assign those categories to post while creating the post with the above request OR have a separate endpoint for categories which accept PATCH request and from that we assign those categories ?
                  
                  
                  Something like this:
                  
                  
                  api/blog/{post_id}/categories => PATCH REQUEST
                  
                  
                
patch requests would make it easier to change them i guess
Обсуждают сегодня