Skip to content

Instantly share code, notes, and snippets.

@Moln
Last active January 17, 2020 04:57
Show Gist options
  • Save Moln/0b6f32d9337e99495b2f3f2aafc69094 to your computer and use it in GitHub Desktop.
Save Moln/0b6f32d9337e99495b2f3f2aafc69094 to your computer and use it in GitHub Desktop.
Api-platform研究记录
  • Entity 生成路由

    • ApiPlatform 会根据 Entity 的 @ApiResource 注解, 自动生成路由.
    • 路由名称, 由 Inflector::pluralize(Greeting::class) 自动生成 /greetings 复数形式的资源名称
    • 单词间默认是 _ 分隔, 文档有记录更改单词分隔符
  • 自定义资源方式?

  • 过滤器原理?

  • 迁移Expressive 方案?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment