As a consumer,
When I send a post request to api/v1/pets/:id/match/like,
I am informed if a match has been made.
As the exposer(better word for this?),
When I receive a post request to api/v1/pets/:id/like,
I generate a Like object with both pets ids. I then search to see if another object exists with both ids.
If another object does exist, I return a JSON object with both tables to indicate a match
As a consumer,
When I send a post request to api/v1/pets/:id/match/like,
I am informed if a match has been made.
As the exposer(better word for this?),
When I receive a post request to api/v1/pets/:id/like,
I generate a Like object with both pets ids. I then search to see if another object exists with both ids.
If another object does exist, I return a JSON object with both tables to indicate a match