1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

fix broken links (#441)

Co-authored-by: Igor Aleksanov <popzxc@yandex.ru>
Co-authored-by: Altug Sahin <altugsahin@gmail.com>
Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
Altug Sahin
2021-10-06 17:28:53 -04:00
committed by GitHub
parent cc948594fe
commit 8186a8cfea
35 changed files with 128 additions and 47 deletions

View File

@ -1,3 +1,20 @@
This example illustrates how to use nested resource registration through application-level configuration.
The endpoints do nothing.
## Usage
```bash
cd basics/nested-routing
cargo run
# Started http server: 127.0.0.1:8080
```
### Available Routes
- [POST /products](http://localhost:8080/products)
- [GET /products](http://localhost:8080/products)
- [GET /products/:product_id](http://localhost:8080/products/:product_id)
- [DELETE /products/:product_id](http://localhost:8080/products/:product_id)
- [GET /products/:product_id/parts](http://localhost:8080/products/:product_id/parts)
- [POST /products/:product_id/parts](http://localhost:8080/products/:product_id/parts)
- [GET /products/:product_id/parts/:part_id](http://localhost:8080/products/:product_id/parts/:part_id)