Update readme, dockerfile
This commit is contained in:
@@ -7,14 +7,14 @@ RUN apk add --update tini
|
||||
ENTRYPOINT [ "/sbin/tini", "--" ]
|
||||
|
||||
RUN addgroup -S $USERNAME && adduser -S $USERNAME -G $USERNAME
|
||||
RUN docker-php-ext-install pcntl
|
||||
#RUN docker-php-ext-install pcntl
|
||||
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
RUN printf "[PHP]\ndate.timezone = \"%s\"\n" $TZ > /usr/local/etc/php/conf.d/tzone.ini
|
||||
|
||||
WORKDIR /application
|
||||
COPY . /application
|
||||
RUN chown app:app /application/data
|
||||
RUN chown app:app /application/var
|
||||
|
||||
USER $USERNAME
|
||||
|
||||
|
||||
15
README.md
15
README.md
@@ -47,6 +47,9 @@ Content-Type: application/json
|
||||
]
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> The only required key is `value`, and as there can only be one value without validity it will overwrite any existing value.
|
||||
|
||||
### Retrieve current values
|
||||
|
||||
```json
|
||||
@@ -87,17 +90,16 @@ GET /businessinfo/all
|
||||
Query params:
|
||||
|
||||
* `only=` - comma-separated list of keys to match
|
||||
|
||||
|
||||
### Delete value
|
||||
|
||||
Delete by posting an array of IDs to delete.
|
||||
Delete by posting an array of value IDs and keys to delete.
|
||||
|
||||
```json
|
||||
POST /businessinfo/delete
|
||||
Content-Type: application/json
|
||||
|
||||
[ 19 ]
|
||||
[ 19, "some.key" ]
|
||||
```
|
||||
|
||||
### Update a value
|
||||
@@ -120,3 +122,10 @@ Content-Type: application/json
|
||||
}
|
||||
```
|
||||
|
||||
### Delete a colleciton
|
||||
|
||||
Update by including an existing id with the set request.
|
||||
|
||||
```json
|
||||
POST /businessinfo/purge
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user