jealapera / todo-app-api

1 stars 0 forks source link

Create API Response Format #2

Open jealapera opened 7 months ago

jealapera commented 7 months ago

Standardize the API response format for all existing API endpoints within the project, ensuring uniformity and ease of consumption across the entire API.

kimmayorga commented 7 months ago

@jealapera @iamcubs Created a PR for you to review, https://github.com/jealapera/todo-app-api/pull/8

kimmayorga commented 5 months ago

@cabibil09
Every end point should have a standard API Response or Result in (Postman for example).

For Success Response/s { "error": false, "code": 200, "message": "User registered successfully.", "data": "token (this should be long text with alphanumeric)" }

For Error Response/s { "error": true, "code": 400, "message": "Email already registered." }