Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant