generated from spatie/package-skeleton-laravel
-
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.
- Implement the new endpoint as per standard practice - Added a profile2 property to Device.php, since it's apparently possible to have two profiles
- Loading branch information
Showing
6 changed files
with
112 additions
and
0 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
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,43 @@ | ||
{ | ||
"body": { | ||
"PK": "device_pk", | ||
"ts": 1111111111, | ||
"name": "device_name", | ||
"device_id": "device_pk", | ||
"status": 0, | ||
"icon": "mobile-android", | ||
"learn_ip": 0, | ||
"bump_tls": 1, | ||
"ddns": { | ||
"status": 1, | ||
"subdomain": "test", | ||
"hostname": "test.controld.live", | ||
"record": "0.0.0.0" | ||
}, | ||
"ddns_ext": { | ||
"status": 1, | ||
"host": "external.example.com" | ||
}, | ||
"resolvers": { | ||
"uid": "resolver_uid", | ||
"doh": "https://dns.controld.com/resolver_uid", | ||
"dot": "resolver_uid.dns.controld.com", | ||
"v6": [ | ||
"2606:1a40::2", | ||
"22606:1a40:1::2" | ||
] | ||
}, | ||
"profile": { | ||
"PK": "profile_pk", | ||
"updated": 1111111111, | ||
"name": "Foo Profile" | ||
}, | ||
"profile2": { | ||
"PK": "profile_2_pk", | ||
"updated": 1111111111, | ||
"name": "Bar Profile" | ||
} | ||
}, | ||
"success": true, | ||
"message": "Device has been added" | ||
} |
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