Skip to content

andrewnovykov/simple-api-on-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curl -X POST http://localhost:8080/register -H "Content-Type: application/json" -d '{ "id":1, "email": "[email protected]", "password": "password123"}'
curl -X POST http://localhost:8080/login -H "Content-Type: application/json" -d '{"id": 1,  "email": "[email protected]", "password": "password123"}'
curl -X POST http://localhost:8080/items -H "Content-Type: application/json" -H "Authorization: Bearer token" -d '{"id": 1 , "name": "Item1", "price": 10.0}'
curl -X GET http://localhost:8080/items/1
curl -X GET http://localhost:8080/items
curl -X PUT http://localhost:8080/updateitems -H "Content-Type: application/json" -H "Authorization: Bearer token1" -d '{"ids": [1], "item": {"name": "UpdatedItem1", "price": 20.0}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages