Eve: Building RESTful APIs with MongoDB and Flask Transcripts
Chapter: Schema definitions and validation
Lecture: Recap
Login or
purchase this course
to watch this video and the rest of the course contents.
0:01
In this chapter we saw how we can leverage the builtin flexible validation rules
0:05
to properly design our endpoint schemas
0:08
and make sure that documents coming into our service
0:11
are conforming to the expectations.
0:14
If necessary, we now also know how to extend a system
0:18
to build custom validation rules and types.
0:21
This is the right moment to mention that the Eve validation system
0:25
is actually provided by a separate package called Cerberus.
0:29
Cerberus is another open source project of mine
0:33
which you can use as a validation work course in your own projects, if you wish.
0:38
Cerberus and Eve websites have plenty of details,
0:42
usage examples and more importantly,
0:45
the complete list of available rules,
0:47
which to be honest, there are more besides the one we've seen in this chapter.
0:53
I suggest you go and take a look at them because well,
0:56
data validation is such a vital part of any rest service
0:59
that you really want to gain full control over it.