{"action":"created","issue":{"url":"https://api.github.com/repos/Dania02525/apartmentex/issues/29","repository_url":"https://api.github.com/repos/Dania02525/apartmentex","labels_url":"https://api.github.com/repos/Dania02525/apartmentex/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/Dania02525/apartmentex/issues/29/comments","events_url":"https://api.github.com/repos/Dania02525/apartmentex/issues/29/events","html_url":"https://github.com/Dania02525/apartmentex/issues/29","id":186077085,"number":29,"title":"Tenant schema as subdomain","user":{"login":"shulhi","id":913103,"avatar_url":"https://avatars.githubusercontent.com/u/913103?v=3","gravatar_id":"","url":"https://api.github.com/users/shulhi","html_url":"https://github.com/shulhi","followers_url":"https://api.github.com/users/shulhi/followers","following_url":"https://api.github.com/users/shulhi/following{/other_user}","gists_url":"https://api.github.com/users/shulhi/gists{/gist_id}","starred_url":"https://api.github.com/users/shulhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulhi/subscriptions","organizations_url":"https://api.github.com/users/shulhi/orgs","repos_url":"https://api.github.com/users/shulhi/repos","events_url":"https://api.github.com/users/shulhi/events{/privacy}","received_events_url":"https://api.github.com/users/shulhi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-29T12:56:14Z","updated_at":"2016-11-01T14:08:32Z","closed_at":null,"body":"I checked out the `widget_saas` project for sample of using apartmentex. Is there a way to have the tenant schema as the subdomain? Something like this: https://django-tenant-schemas.readthedocs.io/en/latest/ i.e. `http://first-tenant.example.com` instead of `http://example.com/tenant/:first_tenant_id`.\n"},"comment":{"url":"https://api.github.com/repos/Dania02525/apartmentex/issues/comments/257575278","html_url":"https://github.com/Dania02525/apartmentex/issues/29#issuecomment-257575278","issue_url":"https://api.github.com/repos/Dania02525/apartmentex/issues/29","id":257575278,"user":{"login":"andreapavoni","id":142753,"avatar_url":"https://avatars.githubusercontent.com/u/142753?v=3","gravatar_id":"","url":"https://api.github.com/users/andreapavoni","html_url":"https://github.com/andreapavoni","followers_url":"https://api.github.com/users/andreapavoni/followers","following_url":"https://api.github.com/users/andreapavoni/following{/other_user}","gists_url":"https://api.github.com/users/andreapavoni/gists{/gist_id}","starred_url":"https://api.github.com/users/andreapavoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreapavoni/subscriptions","organizations_url":"https://api.github.com/users/andreapavoni/orgs","repos_url":"https://api.github.com/users/andreapavoni/repos","events_url":"https://api.github.com/users/andreapavoni/events{/privacy}","received_events_url":"https://api.github.com/users/andreapavoni/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T14:08:32Z","updated_at":"2016-11-01T14:08:32Z","body":"I think this is irrelevant. In both cases (subdomain vs url path) you'd need to write some plug that checks either subdomain or url path to get the  tenant name on each request."}}
{"actor":{"display_login":"andreapavoni"}}