-
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.
feat: add user groups and group ACL (#55)
- Loading branch information
1 parent
3da4e95
commit 83c4d49
Showing
25 changed files
with
401 additions
and
533 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,24 @@ | ||
# -------------------------------------------- | ||
# # Your endpoints | ||
# Absolute path to the root folder of your API | ||
# -------------------------------------------- | ||
; -------------------------------------------- | ||
; # Your endpoints | ||
; Absolute path to the root folder of your API | ||
; -------------------------------------------- | ||
|
||
endpoints = "" | ||
|
||
# -------------------------------------------------- | ||
# # Reflect database | ||
# MySQL/MariaDB Credentials for the Reflect database | ||
# -------------------------------------------------- | ||
; -------------------------------------------------- | ||
; # Reflect database | ||
; MySQL/MariaDB Credentials for the Reflect database | ||
; -------------------------------------------------- | ||
|
||
mysql_host = "" | ||
mysql_user = "" | ||
mysql_pass = "" | ||
mysql_db = "reflect" | ||
|
||
# ---------------------------------------------------- | ||
# # (Optional) UNIX Socket server | ||
# Configuration for the optional Reflect socket server | ||
# ---------------------------------------------------- | ||
; -------------------------------------------------------------------------------- | ||
; # Reflect internal endpoints prefix | ||
; All requests starting with this prefix will be treated as an internal request. | ||
; Internal requests are routed to src/api/reflect/* | ||
; -------------------------------------------------------------------------------- | ||
|
||
## Absolute path to the socket file to be created when the Reflect socket server is started | ||
socket = "/run/reflect/api.sock" | ||
## Socket file octal permissions (chmod) | ||
socket_mode = 01750 | ||
|
||
# --------------------------------------------------------------------------- | ||
# # Optional features and settings | ||
# Uncomment lines prefixed with ";" to enable and configure optional features | ||
# --------------------------------------------------------------------------- | ||
|
||
## Request idempotency | ||
# This feature enforces idempotency on POST, PUT, and PATCH requests. | ||
# - Read more at: https://github.com/victorwesterlund/reflect/wiki/idempotency | ||
# | ||
# Absolute path to the *directory* where an SQLite database for idempotency keys will be created. | ||
;idempotency = "/var/lib/reflect/" | ||
internal_request_prefix = "reflect/" |
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,8 +1,6 @@ | ||
{ | ||
"require": { | ||
"victorwesterlund/libmysqldriver": "^3.2", | ||
"victorwesterlund/libsqlitedriver": "^1.0", | ||
"victorwesterlund/xenum": "^1.1", | ||
"reflect/plugin-rules": "^1.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
<?php | ||
|
||
namespace Reflect; | ||
|
||
interface Endpoint { | ||
public function main(); | ||
} |
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,6 +1,6 @@ | ||
<?php | ||
|
||
namespace Reflect\Request; | ||
namespace Reflect; | ||
|
||
// Allowed HTTP verbs | ||
enum Method: string { | ||
|
Oops, something went wrong.