Updated dependencies (#48)

* Updated dependencies

* Saving changes

* More changes

* More changes

* Updated dependencies

* Updated readme

* Saving changes

* Cleanup
This commit was merged in pull request #48.
This commit is contained in:
KD
2025-04-03 23:16:37 -04:00
committed by GitHub
parent 885f1db3af
commit d5f95ddf9b
10 changed files with 49 additions and 48 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
use crate::models;
pub fn retrieve_url(api: &models::api::API, with_id: bool, id: i32) -> String {
pub fn retrieve_url(api: &models::api::API, with_id: bool, id: &uuid::Uuid) -> String {
if with_id {
retrieve_url_with_id(&api, id)
} else {
@@ -10,6 +10,7 @@ pub fn retrieve_url(api: &models::api::API, with_id: bool, id: i32) -> String {
fn retrieve_url_reg(api: &models::api::API) -> String {
let mut url: String = String::from(&api.url);
url += &String::from("/");
url += &String::from("api/");
url += &String::from(&api.version);
url += &String::from("/");
@@ -19,7 +20,7 @@ fn retrieve_url_reg(api: &models::api::API) -> String {
return url;
}
fn retrieve_url_with_id(api: &models::api::API, id: i32) -> String {
fn retrieve_url_with_id(api: &models::api::API, id: &uuid::Uuid) -> String {
let mut url: String = String::from(&api.url);
url += &String::from("api/");
url += &String::from(&api.version);