true-north-challenge-front

Project setup

npm install

Compiles and hot-reloads for development

npm run start:dev

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Run unit tests

npm run test

Live URL


API Documentation

This documentation provides details about the endpoints.

APIs

1. Users - Registration

  • Endpoint: POST /api/v1/users/registration
  • Description: Registers a new user.
  • Request Body:
    {
        "email": "stan.marsh@southpark.com",
        "password": "hola123"
    }

2. Records - Operation

  • Endpoint: POST /api/v1/records/operation
  • Description: Performs an operation on records.
  • Authentication: Bearer Token
  • Request Body:
    {
        "userAuthUid": "{{userAuthUid}}",
        "operation": "subtraction",
        "a": 1,
        "b": 2
    }

3. Records - Get User Records

  • Endpoint: GET /api/v1/records
  • Description: Retrieves user records.
  • Authentication: Bearer Token
  • Query Parameters:
    • userAuthUid: {{userAuthUid}}
    • q: (optional)
    • take: 5
    • skip: 0
    • orderBy: id
    • order: DESC

4. Records - Delete Record

  • Endpoint: DELETE /api/v1/records
  • Description: Deletes a record.
  • Query Parameters:
    • uid: {{uid}}