boolean-uk / team-dev-server-ex-2410-team3

0 stars 0 forks source link

Create the objects, User, Post #4

Closed sebgro98 closed 1 month ago

sebgro98 commented 1 month ago

This issue is aimed to create accurate models for User and Post according to what we want in the OpenApi and make sure that the connection with the db is setup correctly in "domain".

The models will look as following.

fromDB(post) This will be added to make up the class that we get from the database.

fromJSON(json) This should be used when we get JSON from the client, it should create a post object from JSON parameter.

toJSON() This will return the object in JSON format.

sebgro98 commented 1 month ago

Approved

amos1969 commented 1 month ago

Approved.