This project target is create a mock server of Qualtet. It will be used for Quintet's E2E test.
- rustup 1.27.1
- rustc 1.81.0
- cargo-watch (Optional)
- clippy (Optional: for lint)
Install cargo-watch.
$ cargo install cargo-watch@8.5.2
Please see Qualtet's REST API docs instead.
-
/v1/archives
-
/v1/articles
-
/v1/articles?{queryParams}
-
-
/v1/contents/articles/standard/
: Standard post (not nested). -
/v1/contents/articles/nested/standard/
: Standard post.-
/v1/contents/articles/nested/empty-robots/
: robotesAttrobutes are empty post. -
/v1/contents/articles/nested/empty-tags/
: tags are empty post. -
/v1/contents/articles/nested/partially-robots/
: with partially robotesAttrobutes post. -
/v1/contents/articles/nested/with-externalresources/
: With externalResources post. -
/v1/contents/articles/nested/without-robots/
: without robotesAttrobutes post. -
/v1/contents/articles/nested/without-tags/
: Without tags post.
-
-
/v1/feeds/index
-
/v1/search
-
/v1/series
-
/v1/series/{seriesName}
-
-
/v1/sitemaps/
-
/v1/system/health
-
/v1/system/metadata
-
/v1/tags
-
/v1/tags/{tagName}
-
/v1/tags/{tagName}?{queryParams}
-
Qualtet-mock provides docker image. Please see GitHub Container Repository.
After running the command, a local server starts at http://localhost:9002
.
// with auto-reload
$ cargo watch -w src -x run
// without auto-reload
$ cargo run
$ cargo fmt
How to build.
// with cache
$ docker build . --progress=plain
// without cache
$ docker build . --progress=plain --no-cache
This code is open source software licensed under the Apache 2.0 License.