Compare commits
1 Commits
e732fdada1
...
2b280e2bdf
Author | SHA1 | Date |
---|---|---|
coolneng | 2b280e2bdf |
12
README.md
12
README.md
|
@ -85,7 +85,7 @@ A trained model is provided, which can be used to infer the correct sequences. T
|
||||||
The following command will infer the correct sequence, and print it:
|
The following command will infer the correct sequence, and print it:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
poetry run python src/main.py infer "<DNA sequence>"
|
poetry run python src/main.py infer "<dna sequence>"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### REST API
|
#### REST API
|
||||||
|
@ -100,12 +100,6 @@ The API can be accessed at http://localhost:8000, with either a GET or POST requ
|
||||||
|
|
||||||
| Request | Endpoint | Payload |
|
| Request | Endpoint | Payload |
|
||||||
|:----:|:-----:|:-----:|
|
|:----:|:-----:|:-----:|
|
||||||
| GET | / | Sequence as a path parameter (in the URL) |
|
| GET | /<sequence> | Sequence as a path parameter |
|
||||||
| POST | /| JSON |
|
| POST | /| JSON: {"sequence": "<sequence>"} |
|
||||||
|
|
||||||
For a POST request the JSON must have the following structure:
|
|
||||||
|
|
||||||
```json
|
|
||||||
{"sequence": "<DNA sequence>"}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue