Services isolated on business logic can share data sources with other systems.
Author
Paul Dix
/paul-dix-quotes-and-sayings
Author Summary
About Paul Dix on QuoteMust
Paul Dix currently has 6 indexed quotes and 0 linked works on QuoteMust. This page is the canonical destination for that author archive.
Works
Books and titles linked to this author
Quotes
All quote cards for Paul Dix
However, for the purposes of migrating existing Rails applications to services, the shared database approach may be necessary in the early stages.
for the service in spec/service_spec.rb, you add another describe block:
Many programmers would prefer to mock in their client library specs, but doing so could result in the service and client passing all specs with hidden failures.
You create a file called user.rb in the /models directory:
For invalid user name and password combinations, the service should return a 400 HTTP status code, which means that the server received a __ad request._ The service could also use the 401 (__nauthorized_) response code, but that code specifies that authentication credentials need to be in the request header, which is not quite what is required.