Beispiel-Antworten der API
URL: /admin/users/{username}.json
Example: /admin/users/kayssun.json
| redis: | |
| image: redis | |
| postgres: | |
| image: postgres:9.4 | |
| environment: | |
| - POSTGRES_USER:sentry | |
| - POSTGRES_PASSWORD:sentry | |
| volumes: | |
| - /var/data/sentry/postgre:/var/lib/postgresql/data:rw |
| <?php | |
| namespace Pion\Traits\Models; | |
| use Illuminate\Database\Query\Expression; | |
| use Illuminate\Support\Str; | |
| /** | |
| * Class ModelJoinTrait | |
| * | |
| * Trait to create model join for scope with detection of model in the attributes. |
| import sqlalchemy | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy import Column, Integer, String, ForeignKey | |
| from sqlalchemy.orm import sessionmaker, relationship, backref | |
| from sqlalchemy.ext.associationproxy import association_proxy | |
| import uuid | |
| engine = sqlalchemy.create_engine('sqlite:///:memory:') | |
| Base = declarative_base() | |