Implement a REST server which will manage a Claim entity in its SQLite3 database.

Please note that id and isSolved of the input Claim object will be initialized by the server before inserting the Claim object into its database. You need to use Swift UUID class to generate a random UUID object and assign it to the id of the Claim object. On the other hand, the isSolved property should be initialized as false.
Since SQLite3 database does not support UUID type, you will use a Text column to store the string representation of UUID. Because of this, you need to do a type conversion between UUID and Text to insert/retrieve a Claim record into/from the database (pls refer to Apple UUID Documentation). For boolean property, you can store it as an SQLite3 integer.

DETAILED ASSIGNMENT

20201019020059hw_assignment__1

Powered by WordPress