5. API Methods
● GET
● POST
● PUT
● PATCH
● DELETE
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
6. GET
● Değişikliğe neden
olmamalı
● Cache Kullanılabilir
● Resource veya Resource
Collection dönmeli
● Offset ve Limit olmalı
(Collection için)
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3
7. POST
● Resource create
● Validation
● Hata veya resource location
dönmeli
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.5
8. PUT
● Create resource if not
exists
● Validation
● Eğer resource varsa
güncellemeli
● Yoksa resource u
oluşturmalı
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6
9. PATCH
● Resource yoksa 404
dönmeli
● Validation
● Resource un belirli
fieldları
güncellenebilir
https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.6