Skip to content

Commit

Permalink
Fixes for collection search
Browse files Browse the repository at this point in the history
* Collection results in-accessible because of private visibility
* Send parameters as query instead of form parameters in collection search
  • Loading branch information
lukaspustina committed Jun 14, 2019
1 parent 4d67a6b commit 86297ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
## [Unreleased]


### Fixes
* Collection results in-accessible because of private visibility
* Send parameters as query instead of form parameters in collection search

## [0.3.8] - 2019-06-13

### Add
Expand Down
4 changes: 2 additions & 2 deletions src/client/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl<'a> CollectionsQuery<'a> {

#[derive(Deserialize, Serialize, Debug)]
pub struct CollectionsResult {
collections: Vec<Collection>
pub collections: Vec<Collection>
}

#[derive(Deserialize, Serialize, Debug)]
Expand Down Expand Up @@ -85,7 +85,7 @@ pub fn search_collections(authorized_client: &AuthorizedClient, collection_query
let mut response: Response = authorized_client
.http_client
.get(&url)
.form(&params)
.query(&params)
.bearer_auth(&authorized_client.token.access_token)
.send()
.map_err(|e| e.context(ErrorKind::HttpRequestFailed))?
Expand Down

0 comments on commit 86297ea

Please sign in to comment.