Skip to content

Endpoint to create UsersΒ #48

Description

@rcmtcristian

πŸ› οΈ Issue template for CRUD endpoints


πŸ“‹ Endpoints Required

  • POST /api/v1/users β€” Create a new resource

πŸ—‚οΈ Data Schema

Describe or paste the expected request/response shape below.

Request Body

{
  advocacyGroupId: number,
  username: string,
  email: string,
  password: string,
  firstName: string,
  lastname: string,
  active: boolean <optional, should default to false on record creation if it doesn't already>
}

βœ… Acceptance Criteria

  • All endpoints return correct HTTP status codes
  • Input validation is applied to request bodies and query params
  • Errors return consistent, descriptive JSON responses
  • Endpoints are protected by appropriate auth/authorization middleware
  • Pagination supported on the list endpoint
  • Unit tests cover each endpoint (happy path + error cases)
  • Integration tests pass in CI
  • OpenAPI / Swagger docs updated

πŸ”’ Auth & Permissions


πŸ”— Related


πŸ’¬ Additional Context

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions