summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--person-api-types/src/lib.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/person-api-types/src/lib.rs b/person-api-types/src/lib.rs
index aa0af0a..3f42b86 100644
--- a/person-api-types/src/lib.rs
+++ b/person-api-types/src/lib.rs
@@ -15,5 +15,21 @@ pub mod v1 {
pub struct PersonCreateResponse {
pub id: i32
}
+
+ #[derive(Debug, serde::Serialize, serde::Deserialize)]
+ pub struct PersonByIdData {
+ pub id: i32
+ }
+
+ #[derive(Debug, serde::Serialize, serde::Deserialize)]
+ pub struct PersonByIdResponse {
+ pub name: String,
+ pub age: i32,
+
+ pub country: String,
+ pub city: String,
+ pub street: String,
+ pub number: i32,
+ }
}
}