Arguably, POST /key is not an entirely correct use of POST -- since the insertion operation (after #1 gets fixed) is idempotent arguably it should be PUT. However, I'm not sure whether this will confuse students (then again, they'll have to deal with PUT when they move on to "real-world" APIs anyway).
Arguably,
POST /keyis not an entirely correct use ofPOST-- since the insertion operation (after #1 gets fixed) is idempotent arguably it should bePUT. However, I'm not sure whether this will confuse students (then again, they'll have to deal withPUTwhen they move on to "real-world" APIs anyway).