Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COMichael, I think the ambiguity of the question you pose ("is it essentially a create or an update function") is what is really challenging me. I suppose, I could imagine that the action of "Upload CSV" is updating the hypothetical "This User's Uploaded Data" held in memory and as a result that would be the context of my controller. Food for thought! If you've got any specific examples, they would be great help to me. Thanks again.
      singulars
    2. COIt can be tricky to conceptualize RESTful names (I am certainly no expert). This one, I believe, is familiar in the rails world. A user logs on to a site, they are creating a session. It is common then to use the RESTful /session/create to log a user in, correspondingly /session/destroy is used to log out. This is nothing to do with CRUD. What makes it more confusing still is that you can alias these actions in rails and mvc so that /login and /logout are really just references to /session/create and /session/destroy.
      singulars
    3. COIn the case of create vs update. I (again, no expert) ask myself "Have I got this information / resource already?" If not, it's a create, if so, then it's an update. Using the session/create example: I do have a user but prior to log in they do not have an active session on the application. Therefore I don't have the concept of the user with an active session so it's session/create not session/update.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload