Skip to content

feat: Add API enhancements and updates#141

Open
Damdji123 wants to merge 22 commits into3-system-archfrom
main
Open

feat: Add API enhancements and updates#141
Damdji123 wants to merge 22 commits into3-system-archfrom
main

Conversation

@Damdji123
Copy link
Copy Markdown

Description

This pull request includes enhancements and updates to the GreenCode API.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Changes Made

  • Enhanced API endpoints
  • Improved error handling
  • Updated documentation and configuration

Testing

  • Local testing completed
  • All tests pass

Related Issues

Closes #(issue number)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

RonaldRonnie and others added 22 commits September 7, 2025 19:32
Updates to the system Architecture
The repository lacks clear installation and setup instructions. This makes it difficult for new contributors to run the project.
Improved the structure and formatting of the API documentation, including clearer sections, tables, and examples for authentication and protected endpoints.
…o-patch-3

Enhance API documentation structure and clarity
Add entries for test reports and loFixes #ISSUE_NUMBER

This pull request improves the .gitignore file with additional patterns.

Changes:
- Added test report and coverage ignore patterns
- Added local environment variant files
- Reduced risk of committing generated or sensitive files

Importance:
This keeps the repository cleaner and helps prevent accidental commits of local or generated files.cal environment variants.
…o-patch-4

Add missing ignore patterns for test reports and local environments
Clarify next steps in setup script regarding starting the application interactively.
…o-patch-5

Update next steps in setup.sh for clarity
Added security warnings and updated default passwords to placeholders in env.example.
…o-patch-6

Enhance security notes and update password placeholders
This guide explains the prerequisites and commands for running tests in GreenCode, including recommendations for contributors before submitting pull requests.
…o-patch-7

Add testing guide for contributors
Fixes #134

This pull request adds basic input validation in UserService.

Changes:
- Added validation for null user details
- Added checks for empty username and email
- Added password validation during user creation

Importance:
This improves application stability and prevents invalid user records.
…o-patch-8

Implement user input validation in UserService
Fixes #136

This pull request adds a specific handler for IllegalArgumentException.

Changes:
- Added IllegalArgumentException handler in GlobalExceptionHandler
- Returned clearer BAD_REQUEST response for invalid input
- Improved API error feedback

Importance:
This complements UserService validation and improves API clarity.
…o-patch-9

Add handler for IllegalArgumentException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants