Open vikhyat187 opened 1 year ago
Some thoughts
Don't think we need "message" in the response payload for success. If we want to keep it just an "ok" would be sufficient. In case of errors, it is definitely important and should be concise and helpful for the client combined with appropriate error messages. Created HTTP code is 201.
Noted, will use that
Instead of documenting the contracts here I would strongly suggest using Open API specification. There's good tooling around it so you could do a lot with that.
will try this out
Contracts
Data model #96
Routes
Create a feature flag:
Get feature flag
Get all feature flags
Edit feature flag
Delete feature flag (should we soft delete(add a
deletedAt
column or remove the entry from db)Check if the feature flag is enabled for user Id: (will update as per data model)
Given a user fetch all features enabled. (Need to update on deciding the approach for model)
Enable feature flag for User Id: (this will decide after finalising data model)