Skip to content

Commit 82ce35a

Browse files
authored
Update tutorial.md
1 parent b088894 commit 82ce35a

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

docs/apis/tutorial.md

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,30 @@ Cortex is able to read from any S3 bucket that you have access to.
3232
3333
### Deploy the API
3434
35-
```text
35+
```bash
3636
$ cortex deploy
37-
```
38-
39-
You can get a summary of the status of resources using `cortex get`:
4037

41-
```text
38+
# Get a summary of resource statuses
4239
$ cortex get --watch
4340
```
4441

4542
### Test the API
4643

47-
Get the API's endpoint:
48-
49-
```text
44+
```bash
45+
# Get the endpoint
5046
$ cortex get classifier
5147
```
5248

53-
Use cURL to test the API:
54-
55-
```text
49+
```bash
50+
# Test the API
5651
$ curl -k -X POST -H "Content-Type: application/json" \
5752
-d '{ "samples": [ { "sepal_length": 5.2, "sepal_width": 3.6, "petal_length": 1.4, "petal_width": 0.3 } ] }' \
5853
<API endpoint>
5954
```
6055

6156
### Cleanup
6257

63-
Delete the deployment:
64-
65-
```text
66-
$ cortex delete iris
58+
```bash
59+
# Delete the deployment
60+
cortex delete iris
6761
```

0 commit comments

Comments
 (0)