Skip to content

Commit

Permalink
Merge pull request #126 from Appreciate-Stuff/dstewart/chore/apex-pro…
Browse files Browse the repository at this point in the history
…tocol

chore/apex protocol
  • Loading branch information
appreciate-devon authored Jun 27, 2023
2 parents 5e68a58 + 5ff5f99 commit efeea1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 0 additions & 4 deletions src/core/routes/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,10 +550,6 @@ async fn post_history(
steps: vec![
JsonCryptogramStep::build(ServiceName::Apex, MethodName::SearchHistory)
.payload(json!({ "owner_id": owner_id }))
.postflight(Language::Object(vec![(
String::from("results"),
Language::at("data"),
)]))
.finish(),
],
};
Expand Down
12 changes: 7 additions & 5 deletions src/core/routes/closet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use actix_web::{
HttpResponse,
};
use derive_more::Display;
use iso8601::DateTime;
use serde::Deserialize;
use serde_json::json;
use uuid::Uuid;
use iso8601::DateTime;

use crate::headers::authorization::{Authorization, BearerFields};

Expand All @@ -23,11 +23,10 @@ impl error::ResponseError for ClosetError {

#[derive(Deserialize)]
struct PostPaginateListsRequest {
#[serde(rename="type")]
#[serde(rename = "type")]
list_type: String,
}


async fn post_paginate_lists(
authorization: Option<Authorization>,
req: Json<PostPaginateListsRequest>,
Expand All @@ -43,7 +42,11 @@ async fn post_paginate_lists(
return Ok(HttpResponse::Unauthorized().json(json!({})));
};

log::warn!("Stubbing out list pagination response for {}, lists of type {}", owner_id, req.list_type);
log::warn!(
"Stubbing out list pagination response for {}, lists of type {}",
owner_id,
req.list_type
);
Ok(HttpResponse::Ok().json(json!(
{
"results": [
Expand All @@ -57,7 +60,6 @@ async fn post_paginate_lists(
)))
}


#[derive(Deserialize)]
struct PostPaginateListRequest {}

Expand Down

0 comments on commit efeea1c

Please sign in to comment.