quantumlicht / django-wine

Django version of Site vins
3 stars 1 forks source link

Implement Read-Write API #19

Closed quantumlicht closed 10 years ago

quantumlicht commented 10 years ago

This is dependent on #20

The API task would be to validate if the item that we want to add already exists. The inputs to the API would not be part of the form. Instead the validation needs to take place in the API code. The API call is made before the form submission. We send the input to the API and check if the value already exist. If they do, everything is good, the form will validate. If they don't, we create the values so that when the form will validate.