Giter Club home page Giter Club logo

wpcodevo / simple-api Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 3.0 14 KB

This tutorial will teach you how to build a simple CRUD API in Rust using the Warp web framework and Tokio. We'll use Rust and a few well-known libraries to create a RESTful API that runs on a Warp HTTP server and stores data in memory.

Home Page: https://codevoweb.com/build-a-simple-api-in-rust/

Makefile 3.24% Rust 96.76%
crud crud-api rest-api restful-api rust rust-api rust-lang tokio tokio-rs warp

simple-api's Introduction

Build a Simple API in Rust

This tutorial will teach you how to build a simple CRUD API in Rust using the Warp web framework and Tokio. We'll use Rust and a few well-known libraries to create a RESTful API that runs on a Warp HTTP server and stores data in memory.

Build a Simple API in Rust

Topics Covered

  • Run the Rust API Project Locally
  • Setup the Rust Project
  • Create the API Model
  • Create the API Response Structs
  • Create the API Route Handlers
    • Health Checker Route Handler
    • Find All Records Route Handler
    • Create Record Route Handler
    • Find One Record Route Handler
    • Edit Record Route Handler
    • Delete Record Route Handler
  • Create the API Routes and Setup CORS
  • Test the API Endpoints
    • Add New Record
    • Update a Record
    • Get a Record
    • Get All Records
    • Delete a Record

Read the entire article here: https://codevoweb.com/build-a-simple-api-in-rust/

simple-api's People

Contributors

wpcodevo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.