Skip to content

Commit

Permalink
docs: Update README & API spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Woynert committed Sep 26, 2023
1 parent 4754de7 commit 319f777
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,19 @@ gradle run
### Run tests

```sh
gradle test
gradle test # only run tests
gradle testCodeCoverageReport # run tests & generate coverage
```

See test results
```sh
app/build/reports/tests/test/index.html # general
app/build/reports/jacoco/testCodeCoverageReport/html/index.html # coverage
```




### Format

You need to have `clang-format` installed.
Expand Down
19 changes: 18 additions & 1 deletion docs/spec.openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,29 @@ paths:
schema:
$ref: '#/components/schemas/ReqFileUpload'
responses:
"200":
"201":
description: File is being uploaded. You can check it's state later with the `/file_check` request.
content:
Object:
schema:
$ref: '#/components/schemas/ResFileNew'
"400":
description: Failed field validation.
content:
Object:
schema:
allOf:
- $ref: '#/components/schemas/ResStatus'
- type: object
properties:
msg:
example: '"fileContent: must not be null","fileName: must not be null"'
"413":
description: Bad request. File is too large.
content:
Object:
schema:
$ref: '#/components/schemas/ResStatus'
'default':
description: An error occurred. Returns error code and message. See possible responses at [Metadata API Spec endpoint `POST /files`](https://github.com/hawks-atlanta/metadata-scala/blob/main/docs/spec.openapi.yaml)
content:
Expand Down

0 comments on commit 319f777

Please sign in to comment.