Skip to content

Commit

Permalink
Merge pull request #89 from sharetribe/availability-exceptions
Browse files Browse the repository at this point in the history
Add availability exceptions API endpoints
  • Loading branch information
bladealslayer authored Nov 26, 2018
2 parents 07e246a + 3aecaa8 commit a97b89a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ Changelog](http://keepachangelog.com/en/1.0.0/) and this project
adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased] - xxxx-xx-xx
### Added

- New endpoints [#89](https://github.com/sharetribe/flex-sdk-js/pull/89)
* `sdk.availabilityExceptions.create(/* ... */)`
* `sdk.availabilityExceptions.delete(/* ... */)`
* `sdk.availabilityExceptions.query(/* ... */)`
* `sdk.bookings.query(/* ... */)`

### Changed

Expand Down
28 changes: 28 additions & 0 deletions src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,27 @@ const endpointDefinitions = [
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'availability_exceptions/create',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'availability_exceptions/delete',
internal: false,
method: 'post',
interceptors: [new TransitResponse(), new TransitRequest()],
},
{
apiName: 'api',
path: 'availability_exceptions/query',
internal: false,
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'api',
path: 'images/upload',
Expand Down Expand Up @@ -343,6 +364,13 @@ const endpointDefinitions = [
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'api',
path: 'bookings/query',
internal: false,
method: 'get',
interceptors: [new TransitResponse()],
},
{
apiName: 'api',
path: 'messages/query',
Expand Down

0 comments on commit a97b89a

Please sign in to comment.