fleencorp / fleen-feen

Fleen Feen connects you with the world
GNU General Public License v3.0
0 stars 1 forks source link

Add CountryController and Route Methods #37

Closed aalamu closed 1 week ago

aalamu commented 1 week ago

Summary

This pull request introduces the CountryController class in the com.fleencorp.feen.controller package to provide necessary endpoints for country-related data. The new routes enable access to various country services, enhancing the application's API for user sign-up and country management functionalities.

Changes Made

  1. Created CountryController:

    • Added the CountryController class under the com.fleencorp.feen.controller package with the base path /api/country.
  2. Implemented Route Methods:

    • Added route methods corresponding to CountryService functionalities:
      • /data-for-sign-up:
      • Method: @GetMapping(value = "/data-for-sign-up")
      • Utilizes @Cacheable(value = "data-required-to-sign-up") to cache the response.
      • Calls authenticationService.getDataForSignUp() to retrieve necessary data for user sign-up.
      • Other Methods:
      • Added routes for getCountry(), findCountries(), and countAll() as per the CountryService.
  3. Route Path Details:

    • Ensured that URL paths are simple and descriptive, using straightforward naming conventions like /count-all to keep the API user-friendly.

Notes

Testing and Validation

Related Issue

Additional Notes