From a33ce086021494baf9c507de753b976b3ac9d18f Mon Sep 17 00:00:00 2001
From: Konstantine Datunishvili <68782786+KostaD02@users.noreply.github.com>
Date: Fri, 13 Oct 2023 21:13:24 +0400
Subject: [PATCH] docs: qrcode (#88)
* refactor: qrcode
* chore(release): 1.12.0
---
CHANGELOG.md | 86 ++++++++++++++++++++++++++++
docs/qr.md | 48 +++++++++++-----
package-lock.json | 4 +-
package.json | 2 +-
src/modules/qrcode/qrcode.service.ts | 7 ++-
5 files changed, 127 insertions(+), 20 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 29c8fd6..70e2a27 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,92 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+## 1.12.0 (2023-10-13)
+
+
+### Features
+
+* add dto validation for shop and user ([#7](https://github.com/educata/everrest/issues/7)) ([cc53c0b](https://github.com/educata/everrest/commit/cc53c0b1cc566442749d031696feb73a9d869e79))
+* add dummy phones data ([5cc77b5](https://github.com/educata/everrest/commit/5cc77b54da5cf8e7d778d7cf63269af816a271f4))
+* add echo module ([#85](https://github.com/educata/everrest/issues/85)) ([c844fee](https://github.com/educata/everrest/commit/c844feefabf45533c41d2016319797f02ce7e2e0))
+* add exceptions handling ([929360d](https://github.com/educata/everrest/commit/929360d7fb5725064fab3b5234734848a023da8b))
+* add full support for swagger ([#12](https://github.com/educata/everrest/issues/12)) ([c88d1bb](https://github.com/educata/everrest/commit/c88d1bb02881b0803f26cebdfb15cbf724706f53))
+* add initial swagger docs ([#8](https://github.com/educata/everrest/issues/8)) ([ba54833](https://github.com/educata/everrest/commit/ba54833dc72a4df52a3caff08216c11637d77de9))
+* add logo ([5cf915d](https://github.com/educata/everrest/commit/5cf915d99e3d80a7a66d7b42c1c6ea717c139ccb))
+* add mongoose id validation service and custom decorator ([7285507](https://github.com/educata/everrest/commit/7285507d4f06ded2e002d8159b2201420ee75365))
+* add mongoose id validation service and decorator ([b00a60b](https://github.com/educata/everrest/commit/b00a60bd1a68221ca8d44dd11dba07f19098f2eb))
+* add products modules ([691381b](https://github.com/educata/everrest/commit/691381bc2e0aaa41263966a4ad1fe906fb8586c8))
+* added env for insomnia ([#67](https://github.com/educata/everrest/issues/67)) ([2f2a050](https://github.com/educata/everrest/commit/2f2a05084a740f77a98881119500e36db86d797f))
+* added insomnia work environment ([#11](https://github.com/educata/everrest/issues/11)) ([50283b4](https://github.com/educata/everrest/commit/50283b4d9ac4d448d5b7cfc8bd6db93183458679))
+* added product uploader page and fixed cors for any origin ([#24](https://github.com/educata/everrest/issues/24)) ([bbc778f](https://github.com/educata/everrest/commit/bbc778f1e45b795648e0d88e5aba9b5a7a6d7bfa))
+* added role based guard and refactored shared folder ([#9](https://github.com/educata/everrest/issues/9)) ([57cb224](https://github.com/educata/everrest/commit/57cb224e8a3bb8ad1a3cfcec1559ae6d76bd0cc5))
+* added types to quotes ([#65](https://github.com/educata/everrest/issues/65)) ([facbe03](https://github.com/educata/everrest/commit/facbe0399e99be25ff2d306c148228810a927fb5))
+* added user/cart/products interfaces and dummy data ([c741fc9](https://github.com/educata/everrest/commit/c741fc9022a1f46cb0cdfce9967df36b041b98b3))
+* allow cors from any origin, WIP solution ([#23](https://github.com/educata/everrest/issues/23)) ([0283e7d](https://github.com/educata/everrest/commit/0283e7d2d4e8b3d49602021474ea64333da25c7e))
+* **auth:** create user schema and base controller/service ([b3b42db](https://github.com/educata/everrest/commit/b3b42db24ff67a2dc2a151c07d4fd6e538205c83))
+* **cart:** add checkout endpoint ([57e33bc](https://github.com/educata/everrest/commit/57e33bc07ef28c03bcad4dd6f4307b0fd1a7e8fa))
+* **cart:** added boilerplate for cart service/controller ([a1c2eb2](https://github.com/educata/everrest/commit/a1c2eb2cbf44fb3d28954510fe94efc8009ef139))
+* **cart:** added cart schema ([bea9143](https://github.com/educata/everrest/commit/bea9143522f970558ed03755649484a9463e02dc))
+* **cart:** added clear cart endpoint ([f06774b](https://github.com/educata/everrest/commit/f06774bc3868d78410963735a1eff422f1765362))
+* **cart:** added delete endpoint for single cart item ([62b1c16](https://github.com/educata/everrest/commit/62b1c162bdd5c0dca68b9247191212aecaa0399a))
+* **cart:** added functional to get cart and init cart ([c91a006](https://github.com/educata/everrest/commit/c91a0069a38b64b341c04945fbf5bb8e9e9b4f17))
+* **cart:** added updateCart ([b4ec443](https://github.com/educata/everrest/commit/b4ec44323cabc665d5a541a48c3ed1270f76adad))
+* **cart:** added validation if quantity is more than stock ([c13f39a](https://github.com/educata/everrest/commit/c13f39a7084dc4b4503965c46d806730976dc91d))
+* Create LICENSE ([#22](https://github.com/educata/everrest/issues/22)) ([2e9b2c6](https://github.com/educata/everrest/commit/2e9b2c6e7d04d48ac6349ee6303bc09c18a64dd7))
+* error-response update ([#62](https://github.com/educata/everrest/issues/62)) ([e9c9cf7](https://github.com/educata/everrest/commit/e9c9cf7f17cb5a35ce7aae8c72ab55e26e10b15d))
+* internationalization ([#21](https://github.com/educata/everrest/issues/21)) ([fb16566](https://github.com/educata/everrest/commit/fb16566ed1f4a4fe94ea3f55907ab225ae8ce402))
+* modified error handling with new catch error, added some dto and enums ([7763ac6](https://github.com/educata/everrest/commit/7763ac65ea1acf8d712309cda07c4df691f61994))
+* postman workspace ([#76](https://github.com/educata/everrest/issues/76)) ([9ad9cbc](https://github.com/educata/everrest/commit/9ad9cbcc48668c1e3fc35698ced93dc7f44a94b0))
+* **product-builder:** add full product-builder functionality with previews ([#66](https://github.com/educata/everrest/issues/66)) ([6318aa4](https://github.com/educata/everrest/commit/6318aa4e5cdb0a37f8af7b93a9250b332f18eb9a))
+* **qrcode:** added qrcode generator endpoints with text/images ([#33](https://github.com/educata/everrest/issues/33)) ([9b8cef4](https://github.com/educata/everrest/commit/9b8cef48692c77f54a8be0e9414108d8ec0dafbe))
+* quote module ([#63](https://github.com/educata/everrest/issues/63)) ([38d0642](https://github.com/educata/everrest/commit/38d06429f03fe9731881dc6d3a793f6d5d3ca90b))
+* **shared:** added custom decorator to decode jwt data ([af2331f](https://github.com/educata/everrest/commit/af2331fd02646efdda182288e239b4ea8f78d2cf))
+* **shop:** add getProductById and updateProduct endpoints ([3eb62b9](https://github.com/educata/everrest/commit/3eb62b999a5ffc4873739a760e0c7f21c4916db1))
+* **shop:** add pagination to some endpoints ([3c76eda](https://github.com/educata/everrest/commit/3c76eda482ca7f44d6aec2ed32d7cbc952e7615f))
+* **shop:** add some data with modified get all endpoint ([22c16e4](https://github.com/educata/everrest/commit/22c16e473a3dc157a8ff3f7d0a0d4a9972f37d22))
+* **shop:** added delete endpoint ([e26f64a](https://github.com/educata/everrest/commit/e26f64a4ef33e8d67cbb973534ae4cffbdc0f3b9))
+* **shop:** added pagination to all product endpoint ([210ceab](https://github.com/educata/everrest/commit/210ceabb68c053ed8825dac8b1976489ef061812))
+* **shop:** added search endpoint ([84e4ae8](https://github.com/educata/everrest/commit/84e4ae84ab8df26ffc7bb3f4142b24184b3194e2))
+* **shop:** added search endpoint with pagination ([d10b34d](https://github.com/educata/everrest/commit/d10b34d501745576204800b56e5c75017c42817a))
+* **shop:** added updateProductRating endpoint ([90c7251](https://github.com/educata/everrest/commit/90c725164c7bcffc9cba8f13bf7853db6f3cccee))
+* **shop:** exclude ratings from products response ([62673cf](https://github.com/educata/everrest/commit/62673cf5d577ba524b3d9dbbe934a56d0b4c735b))
+* **shop:** mark id params for future middleware implementation ([e751dea](https://github.com/educata/everrest/commit/e751deac9023b280f28413e3b7f88fa6b4655967))
+* **shop:** mark new rating feature for future implementation ([b254b6f](https://github.com/educata/everrest/commit/b254b6f1145482a88f668744153ab68e64da8fc7))
+* **user:** add sign up endpoint ([415b335](https://github.com/educata/everrest/commit/415b3356899c04b4daf9bd62dd222c4593c67124))
+* **user:** added user endpoints ([#5](https://github.com/educata/everrest/issues/5)) ([10c9fb9](https://github.com/educata/everrest/commit/10c9fb96216801deea41b515e5c8920d4d505b36))
+* **user:** new user endpoints ([#18](https://github.com/educata/everrest/issues/18)) ([ac8a5a0](https://github.com/educata/everrest/commit/ac8a5a0b8e971bd2227e5dff18c2a1dde709b358))
+* **user:** updated jwt guard ([#6](https://github.com/educata/everrest/issues/6)) ([c7b949c](https://github.com/educata/everrest/commit/c7b949c8e53b55c8cb34486120b1799b2ebf332f))
+* **user:** WIP user jwt auth ([b32aa8d](https://github.com/educata/everrest/commit/b32aa8dca2cbce729bd5fd0bce8414a65f1234c1))
+
+
+### Bug Fixes
+
+* api property display in swagger ([#64](https://github.com/educata/everrest/issues/64)) ([4a013eb](https://github.com/educata/everrest/commit/4a013eb8b76cc5d0273d0a5e09457618d84e5368))
+* auth endpoint ([#52](https://github.com/educata/everrest/issues/52)) ([192bd4f](https://github.com/educata/everrest/commit/192bd4ffa5e003964fd018b718f566ca332475d4))
+* **auth:** added sameSite attribute ([#25](https://github.com/educata/everrest/issues/25)) ([d1ef296](https://github.com/educata/everrest/commit/d1ef296a030e016737fcd9b04ddb53e8d88c2797))
+* **auth:** process env reading in other module & refactored jwt guard ([3b57162](https://github.com/educata/everrest/commit/3b571620bdeb38a744f21c839be5a86e069a744c))
+* **cart:** fixed total object values ([5de7f43](https://github.com/educata/everrest/commit/5de7f4395d5ecccba4d52f84e4a59b4ff538b2db))
+* **cart:** handled beforeDiscount price ([102ec87](https://github.com/educata/everrest/commit/102ec87576dd6363957ad41808f8cae4a36e4ee1))
+* changed not authorized 400 to 401 status code ([#69](https://github.com/educata/everrest/issues/69)) ([3562891](https://github.com/educata/everrest/commit/35628916bbe59f7cdc65171c704c9b7b3b7ea79d))
+* changelog doc ([#72](https://github.com/educata/everrest/issues/72)) ([2cdef37](https://github.com/educata/everrest/commit/2cdef37bd9efbf8a329c91d14ddf3bbf3a26a929))
+* corrected path for card.md ([#73](https://github.com/educata/everrest/issues/73)) ([f8ba4fc](https://github.com/educata/everrest/commit/f8ba4fc142a44c2c4dea025f702660b71a96ff10))
+* failing documentation build ([#42](https://github.com/educata/everrest/issues/42)) ([4703adc](https://github.com/educata/everrest/commit/4703adc35ed62750a72eeb96dea2ff8965ffa5cd))
+* file name typo ([168299e](https://github.com/educata/everrest/commit/168299ee890427fe989112c73280b84f059341d9))
+* file path for changelog doc ([#75](https://github.com/educata/everrest/issues/75)) ([748fb70](https://github.com/educata/everrest/commit/748fb708bf74d4525bca1a911d7f64627f0a1a74))
+* handling os commands differently for windows and linux ([#37](https://github.com/educata/everrest/issues/37)) ([e85670c](https://github.com/educata/everrest/commit/e85670c949318102c1ff70a03eb828b1029c784c))
+* heroku using wrong deploy script ([#19](https://github.com/educata/everrest/issues/19)) ([0909911](https://github.com/educata/everrest/commit/09099115e9f21e56188c97fa17b1fe20fd06e494))
+* **products:** categories using name ([e7fed08](https://github.com/educata/everrest/commit/e7fed0899cfe08889ffc26fdcdf20269dff1e2fc))
+* **products:** isNumber validator causing error ([#26](https://github.com/educata/everrest/issues/26)) ([6ea7307](https://github.com/educata/everrest/commit/6ea7307f3e343596655477737c983ce60c0a9f7d))
+* **products:** modified product builder & cookie samesite ([#27](https://github.com/educata/everrest/issues/27)) ([f674bff](https://github.com/educata/everrest/commit/f674bff8c91bf2f03bf94e5e02110920d79edcf3))
+* qrcode result in json ([#80](https://github.com/educata/everrest/issues/80)) ([1d83bb3](https://github.com/educata/everrest/commit/1d83bb34cec3f6043a7ccb94ed99d500efcc6395))
+* serialize user at update ([#53](https://github.com/educata/everrest/issues/53)) ([953c711](https://github.com/educata/everrest/commit/953c7111df4f419618dbbbeae947d15caba17ee9))
+* **shop:** add handle for search case (min,max) ([d46ce7f](https://github.com/educata/everrest/commit/d46ce7fe0bb9800cbf9444ae95489314d755d0d4))
+* **shop:** getCategoryById and getCategories endpoints ([874d3f8](https://github.com/educata/everrest/commit/874d3f83f10a00835987f4427c14aa71faee8a7b))
+* throw error for empty body in sign in ([#68](https://github.com/educata/everrest/issues/68)) ([a5f1317](https://github.com/educata/everrest/commit/a5f131742e9d18055d96765b983e7d533dcac8ad))
+* todos and implemented title check ([#40](https://github.com/educata/everrest/issues/40)) ([6e18590](https://github.com/educata/everrest/commit/6e185907b681fdc1312aa7752398ed3ee76ed458))
+* **user:** correct user interface and added user schema ([8072894](https://github.com/educata/everrest/commit/807289409ce393c7fa892d141773f3845adef4e9))
+* wrong heroku worker name ([#43](https://github.com/educata/everrest/issues/43)) ([8280721](https://github.com/educata/everrest/commit/8280721bc849c64499b1eeff7b23164d1781ee51))
+
## 1.11.0 (2023-10-01)
diff --git a/docs/qr.md b/docs/qr.md
index a6919f3..50cbb1c 100644
--- a/docs/qr.md
+++ b/docs/qr.md
@@ -18,16 +18,23 @@ https://api.everrest.educata.dev/qrcode
```sh
curl -X 'GET' \
'https://api.everrest.educata.dev/qrcode' \
- -H 'accept: application/json'
+ -H 'accept: */*'
```
### Response
-```
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAYAAABRRIOnAAAABmJLR0QA/wD/AP+gvaeTAAAIdUlEQVR4nO2dz08TTxjGn11qS5AqRimVqEECFoMp6smoJz15USOe1Itn7xyMR/0fPHsx8UBiVI7GKCQaYgzxFwmRBCUCFhBpQWp/7PfAV5LZCtNhZne78HySXtyZed9OH2fefffdwQLgwEccRzRnWZZSezey/qaR+a/6/VTH9xrbV2uk5qEgiAAFQQQsuGII2Z6tbECyx/qN7p6v67/qfHg9f+7xuUIQAQqCCFAQRCAia6B7H62L6p4u23ODvs93oxsjmP59uEIQAQqCCFAQREAaQ3iNbowg668aU6iimteotRjGDVcIIkBBEAEKgggEHkPo7uGqe7Ybr/MsQT+7UYUrBBGgIIgABUEEpDGE33ug6WcXus8KZO2DzjuY/n24QhABCoIIUBBEoCKG8Du3Xmu5ftMxiunv5/V8cIUgAhQEEaAgiIDl1Fiy3eu8gsyem7DlEXThCkEEKAgiQEEQAeX3Mvw+/0B3z1aNOWrt/Afd9zRU60G4QhABCoIIUBBEIOL3fbXp8xF03+X0u35Ctb9uDKQKVwgiQEEQgcDL8IMgmUwilUqhvb294trNmzcxPj6O0dFRzMzMBOB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dN+zMF3jqIrpvIEb0/UVMvtcIYgABUEEKAgiII0hvH7PwfTxAn7b082j6GL6PRauEESAgiACFAQRqDh0zGv8rtn0O0aR2ff7CCK+l0G0oCCIAAVBBP4DP7Gw67jiSboAAAAASUVORK5CYII=
+```json
+{
+ "text": "https://everrest.educata.dev",
+ "type": "png",
+ "format": "base64",
+ "errorCorrectionLevel": "H",
+ "imageURL": "https://github.com/educata/everrest/blob/main/docs/public/logo.png?raw=true",
+ "result": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAYAAABRRIOnAAAABmJLR0QA/wD/AP+gvaeTAAAKU0lEQVR4nO2dT2xTyR3Hv/P8N/4TByd2EiB/NqAm0F0LVKkX2HZL1a7YqoAIlwIXVPXEPQfEEdTTnttDT20lpK1KhYC0q91SRABVpQiyEJJlBSENIes4fx0njv2e3/QQsrvj7Ob5+c3zs83vI/n0Zn4zb/z1b37v92bGDABHBeFcbI4xZqp8MUb1ZWPUf7P3Z9a+3SgVbY2oekgQhAAJghBgKIohjOZs0w0YzLGVxuqcb7X/ZsfD7vErtk8eghAgQRACJAhCwG1UwOpztFXMzulGc67Tz/nFWI0RZH8/5CEIARIEIUCCIAQMYwi7sRojGNU3G1OYxWxeo9pimGLIQxACJAhCgARBCDgeQ1idw83O2cXYnWdx+t2NWchDEAIkCEKABEEIGMYQlZ4DZb+7sPquwKi803kH2d8PeQhCgARBCJAgCIFNMUSlc+vVluuXHaPIvj+7x4M8BCFAgiAESBCEAONVlmy3O69g1F4xtZZHsAp5CEKABEEIkCAIAdP7Mip9/oHVOdtszFFt5z9Y3adhdj0IeQhCgARBCJAgCAF3pZ+rZZ+PYHUvZ6XXT5itbzUGMgt5CEKABEEIOL4M3wna2trQ29uLnp6eTdfOnDmD58+fY2xsDMlk0oHeOcumM6bM4vS+h1Lst7e349ixYzh06BBOnDhRsu1UKoWbN2/ixo0buHLlCqanpw37W+kYyY71EdzKxwjZ9kq1rygK7+/v54ODg1zTNNN2i9E0jQ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kjBalRqKcgxwkzbiUSC375923QbVkgkEpbGw+7xL8Ne/QgCWH8sPXnyJB8ZGTHdVjnI/oLNlpctiE07t7jknVey11OUiqIoOHr0KC5fvlxW/VKRvZNN9vgXY2SvbgXxXe0lk0m0traWVLeUsnUnCF5kwem9hbIFUAxjDLFYDH19fejp6UEoFEIotL49L5PJIJPJfPUnbKlUSnpeRXZ9s5Agiqj0L67WBEGPnYQACYIQ2PTf32ZduN1ThNUg1emg2Gp/ZE9xRuXJQxACJAhCgARBCLiN5hy7rxuVl70ewypOx0RG/TFLcX3yEIQACYIQIEEQApvyEHZTPEdanVOtXpd9/7JT8ZWOMchDEAIkCEKABEEIGP5vp1Wsvgsxa1923sNs+7Lbs/p9mI2hyEMQAiQIQoAEQQgYHqxo9/t4s+2ZzWMY1bc7hrE7JrHaH1oPQWwJCYIQIEEQAo4ffi57DafsGEb2eg/Z9WX3lzwEIUCCIARIEISA4zGE1X0Wstc4mkV23qAY2esrjNonD0EIkCAIARIEIWAYQ9i9z0H28QKVbs9qHsUqsvexkIcgBEgQhAAJghDYdOiY3VR6zWalYxSj9it9BBHtyyAsQYIgBEgQhMD/Afn3b2jT73fsAAAAAElFTkSuQmCC"
+}
```
-
+
## Generate
@@ -46,17 +53,23 @@ curl -X 'POST' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
- "text": "if you liked the project, you can star it at: https://github.com/educata/everrest"
+ "text": "EverREST - Everything you need from REST API"
}'
```
### Response
-```
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAklEQVR4AewaftIAAAdnSURBVO3BQY4cy5LAQDLQ978yR0tfJZCoaum/GDezP1jrEoe1LnJY6yKHtS5yWOsih7UucljrIoe1LnJY6yKHtS5yWOsih7UucljrIoe1LnJY6yKHtS7yw4dU/qaKJypTxaTyiYpPqDypmFSeVDxRmSomlaliUvmbKj5xWOsih7UucljrIj98WcU3qXxCZaqYVKaKb1KZKiaVSeVJxaQ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yZyt+kMlVMKm+ovFExqXyi4onKpPJGxROVb1L5mw5rXeSw1kUOa13E/mCtSxzWushhrYsc1rrIYa2LHNa6yGGtixzWushhrYsc1rrIYa2LHNa6yGGtixzWushhrYsc1rrI/wE5NcqHxGGGcgAAAABJRU5ErkJggg==
+```json
+{
+ "text": "EverREST - Everything you need from REST API",
+ "type": "png",
+ "format": "base64",
+ "errorCorrectionLevel": "M",
+ "result": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAACkCAYAAAAZtYVBAAAAAklEQVR4AewaftIAAAYQSURBVO3BQY4cy5LAQDLQ978yR0tfJZCoak08fTezP1jrEoe1LnJY6yKHtS5yWOsih7UucljrIoe1LnJY6yKHtS5yWOsih7UucljrIoe1LnJY6yKHtS7yw4dU/qaKm6hMFZPKk4pJZaqYVKaKJyp/U8UnDmtd5LDWRQ5rXeSHL6v4JpU3VKaKb1L5RMWk8kbFpDJVPKn4JpVvOqx1kcNaFzmsdZEffpnKGxVvqPwmlU9UTCpvqDyp+ITKGxW/6bDWRQ5rXeSw1kV++MepvFExVUwqU8UTlaniicpU8URlqvgvO6x1kcNaFzmsdZEf/jEVk8qTiicqT1SmiqniicoTlaliqviXHNa6yGGtixzWusgPv6zib1KZKr6p4g2VJxWTyhOVJxVvVNzksNZFDmtd5LDWRX74MpX/TxWTylQxqUwVb6hMFU8qJpWpYlKZKiaVN1RudljrIoe1LnJY6yL2B/9hKk8qfpPKVDGp/KaKf8lhrYsc1rrIYa2L/PAhlaliUvmmiqliUvmEylTxpGJSmSomlaniiconVL6p4jcd1rrIYa2LHNa6yA9fpvJGxSdUpoonKt+k8gmVqeITKlPFGypvqEwVnzisdZHDWhc5rHUR+4O/SGWqeKIyVUwqTyqeqPymik+oTBXfpDJVPFGZKr7psNZFDmtd5LDWRewPPqAyVUwqU8UnVKaKJypTxROVqWJS+U0V36TypGJSeVIxqUwVnzisdZHDWhc5rHUR+4O/SGWqmFTeqPiEylQxqbxR8UTlExWTypOK/5LDW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ywy+r+E0Vk8pU8QmVJxWfqJhUpoo3VKaKSeVmh7UucljrIoe1LvLDl6n8TSpTxaQyVUwq36TypOJJxaTypGKqeKPiicqkMlV802GtixzWushhrYvYH6x1icNaFzmsdZHDWhc5rHWRw1oXOax1kcNaFzmsdZHDWhc5rHWRw1oXOax1kcNaFzmsdZHDWhf5PxwR7FlLko0sAAAAAElFTkSuQmCC"
+}
```
-
+
## Generate with image
@@ -73,18 +86,25 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAAC0CAYAAAA9zQYyAAAAAklEQVR4Ae
```sh
curl -X 'POST' \
'https://api.everrest.educata.dev/qrcode/generate_with_image' \
- -H 'accept: application/json' \
+ -H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
- "text": "With this QR module, users can generate QR codes with or without an image. Response will be always in base64 format.",
- "imageURL": "https://everrest.educata.dev/logo.png"
+ "text": "EverREST - Everything you need from REST API",
+ "imageURL": "https://raw.githubusercontent.com/educata/everrest/main/assets/images/educata-bg-transparent.png"
}'
```
### Response
-```
-data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOQAAADkCAYAAACIV4iNAAAABmJLR0QA/wD/AP+gvaeTAAAWXklEQVR4nO3deZBURZ4H8G8dXdVV1V1HXxR025xyNaCuLgoMuMAqzgzuuOIYGwwza+w/8w+xRPgPYRixasTu/m04jhFu7IzrhE7MuuDGzHoM6nALKusgh3LI0UBDn3R39VF31ds/gF66Cvv142Xmy26+nwj+oV7ly3pVv86XLzN/6QJgQCHDGH06l8tl6/VSTpdnxux8dlmtTym718usPqq/fzOiy7PLrfRsRDQmBiSRRhiQRBrxlv6H6D6O2T243T6JWXmi+4B2z2dGdX2tHm/381llt76lVF8/M6X1YQtJpBEGJJFGGJBEGinrQ5aSPc5mtU9i1qcxq6/ocS+r7JYve9zU7ue1ev2tvq4b0fHBFpJIIwxIIo0wIIk0YtqHlE32uKHoPpRZ/ez2SUWPy1otX/RcX7PjS6keJ9YNW0gijTAgiTTC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SnaOIrtk59E1+z7YQhJphAFJpBEGJJFGTNdDys4TapXse3yz40WXL/v6iGb3+3e6j6vb9nmcy0qkMQYkkUYYkEQaUZ6X1YzocS6r53N6bwjZ6z+d/n7MiH5GUEp1nlqr2EISaYQBSaQRBiSRRlyG5IErp/tUZlTnFTXj9NxO1etLZY8jq2a3fmwhiTTCgCTSCAOSSCNlc1lFk71+UPbczVKixwFVz520yu7nVb2XSinZc5dF94HZQhJphAFJpBEGJJFGvKrHcWTn/TQ7n+zyrPaZVOc9lZ2DSPZ6Q9l9+FKy99vkekgijTEgiTTCgCTSiGlOHbvs3qOL7pPJ7mNYfd0up/d3NKP6+7dbn1Kq8+iyhSTSCAOSSCMMSCKNlOXUcXpvA932f7RKdv3tcnqvD9V9MrvHW8X9IYkmEQYkkUYYkEQakb4e0i7RfVjRfVq745Cqx91Ez/0V/X7VfTrRzzzsXl+2kEQaYUASaYQBSaQR7fqQqnOamJUneu6rbE7P/RT9fqvPBOzWR/ZcarPzs4Uk0ggDkkgjDEgijZj2IVXn0Swlu0+mOqeK1fPbrY/qHDmi55LK3vtD9TMCjkMSTSAMSCKNMCCJNFK2HlI22Xt9mBHdR1C9V0cp1ftX2q2P6D6w6t+D7HFstpBEGmFAEmmEAUmkkf8DrliZ8L+eJRIAAAAASUVORK5CYII=
+```json
+{
+ "text": "EverREST - Everything you need from REST API",
+ "type": "png",
+ "format": "base64",
+ "errorCorrectionLevel": "H",
+ "imageURL": "https://raw.githubusercontent.com/educata/everrest/main/assets/images/educata-bg-transparent.png",
+ "result": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJQAAACUCAYAAAB1PADUAAAABmJLR0QA/wD/AP+gvaeTAAAKU0lEQVR4nO2dS0wT3xfHv31QhAqIPBsEISAIvooR42tBMKCydWVcyd6wU5esdaUJbkhYQGLiAhdsMEp0x04DCSmF8IgQEosWAWkLLe38F/5/RFvlcplzZ6blfJJZ0Jneczr9cub03jNnbAA0GIim/WnOZrOZ+v5kROOJ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lLhrqG3+z7+Lg/FKMUFhRDCguKIUWYQ1n9Pjyj+02p7skpgnqeie/LYywNC4ohhQXFkJKSQ5ndf8jotTNZ9OZMenMWvfZU56QcoRhSWFAMKSwohpT/ASZeus8KHhSGAAAAAElFTkSuQmCC"
+}
```
-
+
diff --git a/package-lock.json b/package-lock.json
index fbaebfd..d64916d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "everrest",
- "version": "1.11.0",
+ "version": "1.12.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "everrest",
- "version": "1.11.0",
+ "version": "1.12.0",
"license": "MIT",
"dependencies": {
"@nestjs-modules/mailer": "^1.9.1",
diff --git a/package.json b/package.json
index ca5ecd1..eb12709 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "everrest",
- "version": "1.11.0",
+ "version": "1.12.0",
"description": "EverREST backend service for educational purposes",
"author": "Educata Authors",
"private": true,
diff --git a/src/modules/qrcode/qrcode.service.ts b/src/modules/qrcode/qrcode.service.ts
index fe0812e..e7d2df8 100644
--- a/src/modules/qrcode/qrcode.service.ts
+++ b/src/modules/qrcode/qrcode.service.ts
@@ -37,7 +37,7 @@ export class QrCodeService {
QRCodeExpectionKeys.InvalidImage,
);
});
- const qrCode = QRCode.create(value, { errorCorrectionLevel: 'M' });
+ const qrCode = QRCode.create(value, { errorCorrectionLevel: 'H' });
const canvas = createCanvas(
qrCode.modules.size * 8,
qrCode.modules.size * 8,
@@ -46,7 +46,7 @@ export class QrCodeService {
QRCode.toCanvas(
canvas,
value,
- { errorCorrectionLevel: 'M', margin: 0 },
+ { errorCorrectionLevel: 'H', margin: 0 },
(error) => error ?? '',
);
@@ -79,7 +79,8 @@ export class QrCodeService {
text: value,
type: 'png',
format: 'base64',
- errorCorrectionLevel: 'M',
+ errorCorrectionLevel: 'H',
+ imageURL: imageSrc,
result: canvas.toDataURL(),
};
}