Skip to content

This project implements an API for managing age groups and processing enrollments.

Notifications You must be signed in to change notification settings

montenegroleticia/AgeEnrollmentAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Age groups enrollment API

This project implements an API for managing age groups and processing enrollments.

Tools

Node.js Node.js Node.js

API Documentation

Age Groups

  • Register a new age group

    • POST /age-groups/
    • Request Body:
      {
        "min_age": 10,
        "max_age": 15
      }
  • Delete an age group

    • DELETE /age-groups/{age_group_id}
  • View existing age groups

    • GET /age-groups/

Enrollments

  • Request enrollment

    • POST /enrollments/
    • Request Body:
      {
        "name": "Maria",
        "age": 21,
        "cpf": "12345678900"
      }
  • Check enrollment status

    • GET /enrollments/{enrollment_id}/status
  • View existing enrollment

    • GET /enrollments/

How to run

  1. Clone this repository:
git clone https://github.com/montenegroleticia/AgeEnrollmentAPI.git
  1. Copy the example environment file and configure the environment variables:
cp .env.example .env
  1. Build:
docker compose build
  1. Run API and DB:
docker compose up
  1. Access aplication:
localhost:8000
  1. Run tests with pytest:
docker compose run api pytest
  1. Run lint with flake8:
docker compose run api flake8

About

This project implements an API for managing age groups and processing enrollments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published