-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Zaikio::Hub::AccessToken * Reorganize hub classes and introduce breaking change for VendorApp * Disable uri --------- Co-authored-by: Jalyna <js@zaikio.com>
- Loading branch information
1 parent
b1c1f9d
commit 538adbe
Showing
7 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Zaikio | ||
module Hub | ||
class AccessToken < Base | ||
uri "access_token" | ||
|
||
include_root_in_json :access_token | ||
|
||
# Associations | ||
has_one :app, class_name: "Zaikio::Hub::App", uri: nil | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
module Zaikio | ||
module Hub | ||
class App < Base | ||
uri "apps(/:id)" | ||
|
||
include_root_in_json :app | ||
uri nil | ||
|
||
# Attributes | ||
attributes :name, :category, :kind, :state, :configuration | ||
attributes :name, :slug, :title, :logo_url | ||
|
||
# Associations | ||
has_one :vendor, class_name: "Zaikio::Hub::Vendor", uri: nil | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Zaikio | ||
module Hub | ||
class Vendor < Base | ||
uri nil | ||
|
||
# Attributes | ||
attributes :name, :slug, :logo_url | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Zaikio | ||
module Hub | ||
class VendorApp < Base | ||
uri "apps(/:id)" | ||
|
||
include_root_in_json :app | ||
|
||
# Attributes | ||
attributes :name, :category, :kind, :state, :configuration | ||
end | ||
end | ||
end |