From de7e28357f2b5fa747b1ce3eb8ece5f8d9bf07d1 Mon Sep 17 00:00:00 2001 From: RohovAlex <47148269+RohovAlex@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:29:17 +0300 Subject: [PATCH 1/2] added readme --- JavaScript/5-agnostic/README.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 JavaScript/5-agnostic/README.md diff --git a/JavaScript/5-agnostic/README.md b/JavaScript/5-agnostic/README.md new file mode 100644 index 0000000..afa5c9f --- /dev/null +++ b/JavaScript/5-agnostic/README.md @@ -0,0 +1,8 @@ +## Example 5 Agnostic + +- For testing and proper operation of the code, please use a URL in the following format: +http://localhost:8000/entity/method/id +Where entity - entity name in the routing, method - method name in the routing, id - identifier of the record in the database. +- Example of URL for get user with id = 1: +http://localhost:8000/user/read/1 + From 6c7d1aecb73b434de2116da4c2f2b5eda346aab4 Mon Sep 17 00:00:00 2001 From: RohovAlex <47148269+RohovAlex@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:55:00 +0300 Subject: [PATCH 2/2] Update README.md --- JavaScript/5-agnostic/README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/JavaScript/5-agnostic/README.md b/JavaScript/5-agnostic/README.md index afa5c9f..df7eb1e 100644 --- a/JavaScript/5-agnostic/README.md +++ b/JavaScript/5-agnostic/README.md @@ -1,8 +1,12 @@ ## Example 5 Agnostic - For testing and proper operation of the code, please use a URL in the following format: -http://localhost:8000/entity/method/id -Where entity - entity name in the routing, method - method name in the routing, id - identifier of the record in the database. + + `http://localhost:8000/entity/method/id` + + Where entity - entity name in the routing, method - method name in the routing, id - identifier of the record in the database. + - Example of URL for get user with id = 1: -http://localhost:8000/user/read/1 + + `http://localhost:8000/user/read/1`