Slide 15
Slide 15 text
Each endpoint needs specific data, and the structure must be adapted for each
one. But here we will try to give the general structure for each type (GET, POST,
PATCH, DELETE), so we have common knowledge about how to build the
integration test. And that’s perfect because in our CRUD we have this type of
endpoint.
Also, gem allows us to use all method from rspec.
Moreover, we call this integration test because when rspec is run, this integration
test will also be run and should not fail…This will allow us to better maintain the
documentation and be sure we are creating the necessary documentation.
STEP 4: DOCUMENT YOUR ENDPOINTS