Update readme, dockerfile

This commit is contained in:
2024-09-27 17:36:25 +02:00
parent 6d240acdb4
commit ac57a59f2f
2 changed files with 14 additions and 5 deletions

View File

@@ -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

View File

@@ -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
```