Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create user related resources #23

Open
RMCampos opened this issue Jan 31, 2023 · 0 comments · May be fixed by #63
Open

Create user related resources #23

RMCampos opened this issue Jan 31, 2023 · 0 comments · May be fixed by #63
Assignees
Labels
enhancement New feature or request

Comments

@RMCampos
Copy link
Collaborator

RMCampos commented Jan 31, 2023

Create user

Method POST, resource /api/users, responses: 201 if success, 400 if problem or 500 internal error.
Request body:

{
    "firstName": "Name",
    "lastName": "Last",
    "email": "[email protected]",
    "terms": ["term1", "term2"]
}

Response body: what was created.

Update user

Method PATCH resource /api/users/{email}, responses: 200 if success, 404 if user not found or 500 internal error.
Request body:

{
    "firstName": "Name",
    "lastName": "Last",
    "email": "[email protected]",
    "terms": ["term1", "term2"]
}

Response body: the entire user entity.

Disable user

Method DELETE resource /api/users/{email}, responses: 200 if success, 404 if user not found or 500 internal error.
Request body: none
Response body: none

Get all users

Method GET resource /api/users, responses: 200 if success, or 500 internal error.
Response body:

[
  { "firstName": "...", "lastName": "...", "email": "...", "terms": ["..."] },
  { "firstName": "...", "lastName": "...", "email": "...", "terms": ["..."] }
]

Get all user's job

Method GET resource /api/users/{email}/jobs, responses: 200 if success, 404 if user not found or 500 internal error.
Optional query params: startDate=MM-DD-YYYY, emailSent=yes/no
Response body:

[]
@RMCampos RMCampos assigned RMCampos and unassigned RMCampos Jan 31, 2023
@RMCampos RMCampos added the enhancement New feature or request label Feb 8, 2023
@RMCampos RMCampos self-assigned this Apr 7, 2023
@RMCampos RMCampos linked a pull request Aug 15, 2023 that will close this issue
9 tasks
@RMCampos RMCampos linked a pull request Aug 15, 2023 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant