-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |