prasenjeet-symon / intellectia

Intellectia - Your Guardian Against Misleading AI-Generated Content
MIT License
15 stars 43 forks source link

Attach Validators Middleware to API Routes in server Folder #219

Closed prasenjeet-symon closed 11 months ago

prasenjeet-symon commented 1 year ago

Title: Attach Validators Middleware to API Routes in server Folder

Description: This GitHub issue is dedicated to attaching validators middleware to the API routes within the server folder. The validators are located in the lib/utils folder, and this process aims to ensure that incoming requests are validated and adhere to defined rules and constraints. Reference can be taken from the __tests__/server/validators-route.ts file for guidance on how to attach validators to routes.

Tasks:

  1. Middleware Attachment:

    • [ ] Examine the existing API routes within the server folder.
    • [ ] Identify the appropriate validators from the lib/utils folder that correspond to each route.
  2. Validator Integration:

    • [ ] Implement the integration of validators middleware into each API route within the server folder.
    • [ ] Ensure that requests are properly validated before processing.
  3. Testing:

    • [ ] Test the attached validators by making requests to the routes.
    • [ ] Verify that validators correctly validate the incoming data and reject invalid requests.
  4. Documentation:

    • [ ] Update the API documentation to reflect the use of validators and their integration with the API routes.

Acceptance Criteria:

Additional Information:

After creating this GitHub issue, you can proceed to follow the tasks outlined to attach validators to your API routes in the server folder.

jude-san commented 1 year ago

hi @prasenjeet-symon can i take this?

prasenjeet-symon commented 1 year ago

@jude-san Yes absolutely 👍

prasenjeet-symon commented 1 year ago

@jude-san It is a long task , for this issue just add the appropriate middleware only. Do not change the api's business logics. Thanks

jude-san commented 1 year ago

@jude-san It is a long task , for this issue just add the appropriate middleware only. Do not change the api's business logics. Thanks

noted.

jude-san commented 1 year ago

@prasenjeet-symon looks like i am not making any progress with the task, can i be unassigned? thanks.

khamkarsuraj commented 11 months ago

Hello @prasenjeet-symon , Can I work on this?

prasenjeet-symon commented 11 months ago

Hello @prasenjeet-symon , Can I work on this?

Yes , Assigned to you . Sorry for the late reply, was little bit busy.