My users enter a few information fields in an iOS app. This information must be validated on my server, which has a RESTful API. After validation the UI of the iOS app chang
I recommend using a ValidationResource
and two requests. Each instance of this resource represents the validation of a set of data. The workflow:
1. Create new ValidationResource
POST /path/to/validations
201 Created
Location: /path/to/validations/
2. Look up result
GET /path/to/validations/
200 OK
{'valid': true}
or {'valid': false}
This is a RESTful approach in which the Validation is a Resource with server state.