prajadimas / nyomot2rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nyomot2rust - Repositori Belajar Rust

Belajar nyomot2 kodingan rust.

actix-web

Belajar membuat service(s) pakai Actix Web.

Coba nyomot dari Getting Started:

  • GET / (OK)
  • POST /echo (OK)
  • GET /hey (OK)

actix-swagger

Belajar ngoding tanpa ngoding, dengan auto generate koding dari OpenAPI Spec.

Coba nyomot dari Swagg:

  • Generate from OpenAPI Spec. (OK)
cargo-swagg ./openapi.yaml --out-file ./src/api.rs
  • Generate from OpenAPI Spec. Pet Store (Err)
cargo-swagg ./petstore.yaml --out-file ./src/petstore.rs
  • Percantik hasil luaran koding (OK)
rustfmt ./src/api.rs

serde

Belajar ngeformat output service jadi JSON

Coba nyomot dari Examples:

  • Output JSON { message: 'SUCCESS'} (OK)

Not Found Error

Belajar membuat handling default route yang tidak ada

Coba nyomot dari Error 404 unfound routes Actix-web

  • { message: NOT FOUND } (OK)

HTML Serve

Belajar mengeluarkan file html

Coba nyomot dari What's the easiest way to get the HTML output of an actix-web endpoint handler to be rendered properly?

  • GET /docs (OK)

UUID

Belajar buat uuid

Coba nyomot dari Crate uuid

  • GET /uuid (OK)

JWT

Belajar buat token JWT

Coba nyomot dari JWT authentication in Rust

  • GET /token (OK)

Selanjutnya nyomot apa?

  • Decode JWT in Authorization Header as Bearer Token
  • Handling Error(s)
  • Upload file
  • Websocket
  • Apapun yang asik

About


Languages

Language:Rust 95.3%Language:HTML 4.7%