| ... | @@ -348,3 +348,37 @@ true |
... | @@ -348,3 +348,37 @@ true |
|
|
</details>
|
|
</details>
|
|
|
|
|
|
|
|
---
|
|
---
|
|
|
|
|
|
|
|
### Fetch File
|
|
|
|
|
|
|
|
> Returns submission file's data string.
|
|
|
|
|
|
|
|
| Method | Route | Content type | Authentication |
|
|
|
|
|--------|-------|--------------|----------------|
|
|
|
|
| GET | /challenge/fetchfile/{fileName} | - | Bearer token |
|
|
|
|
|
|
|
|
<details>
|
|
|
|
<summary>Example Responses</summary>
|
|
|
|
|
|
|
|
```
|
|
|
|
file data in base64 format
|
|
|
|
```
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"statusCode": 404,
|
|
|
|
"error": "Challenge file not found",
|
|
|
|
"message": "Challenge file fileId:edb8b406-55e4-43d8-ba4c-88f9062f428e not found"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"statusCode": 415,
|
|
|
|
"error": "File type invalid",
|
|
|
|
"message": "Given file incorrect format {type}"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
</details>
|
|
|
|
|
|
|
|
--- |
|
|
|
\ No newline at end of file |