I am making an API for my site using Philip Sturgeon's REST server and i am in a little dilemma. I am not shure which action to use for edit and which for create. POST or PUT?
            Asked
            
        
        
            Active
            
        
            Viewed 705 times
        
    0
            
            
        - 
                    This post explains it very well: http://stackoverflow.com/a/630475/1932551 – Gorka Lauzirika Sep 30 '13 at 14:29
2 Answers
1
            The POST method is usually used for create operations,
and the PUT is used for edit/update operations.
 
    
    
        stormdrain
        
- 7,915
- 4
- 37
- 76
 
    
    
        Armand
        
- 9,847
- 9
- 42
- 75
0
            
            
        Put methods are Idempotent whereas Post methods are non-Idempotent. means put are safely repeatable and post are not safely repeatable
 
    
    
        user2663609
        
- 407
- 7
- 10
