add contact comments

This commit is contained in:
Asim Aslam
2022-02-24 22:00:29 +00:00
parent e5e9d4fa57
commit ae488909bc

View File

@@ -74,6 +74,7 @@ message ContactInfo {
string updated_at = 11; string updated_at = 11;
} }
// Create a contact
message CreateRequest { message CreateRequest {
// required, the name of the contact // required, the name of the contact
string name = 1; string name = 1;
@@ -97,6 +98,7 @@ message CreateResponse {
ContactInfo contact = 1; ContactInfo contact = 1;
} }
// Read contact details
message ReadRequest { message ReadRequest {
string id = 1; string id = 1;
} }
@@ -105,6 +107,7 @@ message ReadResponse {
ContactInfo contact = 1; ContactInfo contact = 1;
} }
// Delete a contact
message DeleteRequest { message DeleteRequest {
// the id of the contact // the id of the contact
string id = 1; string id = 1;
@@ -114,6 +117,7 @@ message DeleteResponse {
} }
// Update a contact
message UpdateRequest { message UpdateRequest {
// required, the contact id // required, the contact id
string id = 1; string id = 1;
@@ -139,6 +143,7 @@ message UpdateResponse {
ContactInfo contact = 1; ContactInfo contact = 1;
} }
// List contacts
message ListRequest { message ListRequest {
// optional // optional
uint32 offset = 1; uint32 offset = 1;