diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a941c031..59167bb4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,8 +57,21 @@ jobs: uses: gittools/actions/gitversion/execute@v0.10.2 with: useConfigFile: true + updateAssemblyInfo: true + updateAssemblyInfoFilename: src/AssemblyInfo.cs configFilePath: .github/.gitversion.yml + - name: Print AssemblyInfo + run: cat src/AssemblyInfo.cs + + - name: Upload AssemblyInfo + uses: actions/upload-artifact@v3.1.2 + if: always() + with: + name: assembly-info + path: src/AssemblyInfo.cs + retention-days: 30 + CodeQL-Analyze: runs-on: ubuntu-latest permissions: @@ -330,6 +343,16 @@ jobs: restore-keys: | ${{ runner.os }}-nuget + - name: Download AssemblyInfo.cs + id: download + uses: actions/download-artifact@v3 + with: + name: assembly-info + path: src/ + + - name: Print AssemblyInfo + run: cat src/AssemblyInfo.cs + - name: Restore dependencies run: dotnet restore working-directory: ./src diff --git a/doc/dependency_decisions.yml b/doc/dependency_decisions.yml index a1538aefa..3c8235479 100644 --- a/doc/dependency_decisions.yml +++ b/doc/dependency_decisions.yml @@ -2401,21 +2401,21 @@ - :who: mocsharp :why: Apache-2.0 (https://github.com/mongodb/mongo-csharp-driver/raw/master/License.txt) :versions: - - 2.19.0 + - 2.19.1 :when: 2022-11-16 23:38:53.891380809 Z - - :approve - MongoDB.Driver - :who: mocsharp :why: Apache-2.0 (https://github.com/mongodb/mongo-csharp-driver/raw/master/License.txt) :versions: - - 2.19.0 + - 2.19.1 :when: 2022-11-16 23:38:54.213853364 Z - - :approve - MongoDB.Driver.Core - :who: mocsharp :why: Apache-2.0 (https://github.com/mongodb/mongo-csharp-driver/raw/master/License.txt) :versions: - - 2.19.0 + - 2.19.1 :when: 2022-11-16 23:38:54.553730219 Z - - :approve - MongoDB.Libmongocrypt diff --git a/docs/api/rest/config.md b/docs/api/rest/config.md index 874b9bebe..12657d94a 100644 --- a/docs/api/rest/config.md +++ b/docs/api/rest/config.md @@ -168,6 +168,65 @@ curl --location --request POST 'http://localhost:5000/config/ae/' \ --- +## PUT /config/ae + +Updates an existing MONAI SCP Application Entity. + +> [!Note] +> The MONAI SCP AE Title cannot be changed. + +> [!Note] +> The DICOM tag used for `grouping` can be either a Study Instance UID (0020,000D) or Series Instance UID (0020,000E). +> The default is set to a Study Instance UID (0020,000D) if not specified. + +> [!Note] +> `timeout` is the number of seconds the AE Title will wait between each instance before assembling a payload and publishing +> a workflow request. We recommend calculating this value based on the network speed and the maximum size of each +> DICOM instance. + +### Parameters + +See the [MonaiApplicationEntity](xref:Monai.Deploy.InformaticsGateway.Api.MonaiApplicationEntity) +class definition for details. + +### Responses + +Response Content Type: JSON - [MonaiApplicationEntity](xref:Monai.Deploy.InformaticsGateway.Api.MonaiApplicationEntity). + +| Code | Description | +| ---- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| 200 | AE Title updated successfully. | +| 400 | Validation error. The response will be a [Problem details](https://datatracker.ietf.org/doc/html/rfc7807) object with server error details. | +| 404 | Named MONAI AE not found. | +| 500 | Server error. The response will be a [Problem details](https://datatracker.ietf.org/doc/html/rfc7807) object with server error details. | + +### Example Request + +```bash +curl --location --request PUT 'http://localhost:5000/config/ae/' \ + --header 'Content-Type: application/json' \ + --data-raw '{ + "name": "breast-tumor", + "timeout": 3, + "workflows": [ + "3f6a08a1-0dea-44e9-ab82-1ff1adf43a8e" + ] + } + }' +``` + +### Example Response + +```json +{ + "name": "breast-tumor", + "aeTitle": "BREASTV1", + "workflows": ["3f6a08a1-0dea-44e9-ab82-1ff1adf43a8e"], + "timeout": 3 +} +``` + +--- ## DELETE /config/ae/{name} Deletes the specified MONAI SCP Application Entity. diff --git a/docs/changelog.md b/docs/changelog.md index 63ee8e9f7..df31695e6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,5 @@