Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zleyyij committed Jan 23, 2024
1 parent 795db25 commit 063ea92
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
## Building
Building this project requires installing the rust toolchain.

To build the project (development):
```
cargo build
```

To run the project (development):
```
cargo run
```
This will start a server on port 3000.

To build a release executable:
```
cargo build --release
```
The resulting executable will be loacted in `./target/release/`.

## Testing
Testing also requires the rust toolchain installed.

To test the project:
```
cargo test
```

## Endpoints
To interact with the cpu api, submit a `GET` request to `/api/cpus` with a `Content-Type` of `application/json`.

The json submitted should look like this:
```json
{
"name": "CPU_TO_LOOK_UP"
}
```

This endpoint does not guarantee the correctness of the model returned, it will always attempt to return a model.

0 comments on commit 063ea92

Please sign in to comment.