Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Implement a rest endpoint /register that receives a POST request from the diaper app #5

Closed
davidsth opened this issue Oct 2, 2018 · 1 comment
Assignees

Comments

@davidsth
Copy link
Contributor

davidsth commented Oct 2, 2018

This deals with registering a partner (user) through the diaper app. The process of registration happens when the diaper app sends a POST request to the /register endpoint as described below.

When The app receive a registration request on the /api/v1/register route
Then the system will create a new partner
And the system will email the partner with the registration link

The /register POST request includes the following payload:

{
organization_id: string,
partner_id: string,
email: string
}

Tests should be included that makes sure the registration link is sent. Docs on how to add rspec tests for action mailer is found here

  1. https://relishapp.com/rspec/rspec-rails/docs/mailer-specs
  2. https://www.lucascaton.com.br/2010/10/25/how-to-test-mailers-in-rails-with-rspec/
@davidsth davidsth self-assigned this Oct 2, 2018
@davidsth davidsth changed the title Implement a rest endpoint /register that receives a POST request from the diaper app: Implement a rest endpoint /register that receives a POST request from the diaper app Oct 2, 2018
@denys-medynskyi
Copy link

Can I take this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants