From 987595a0ddea0d5209e40e90a897607a8b4cd665 Mon Sep 17 00:00:00 2001 From: Unbewohnte <65883674+Unbewohnte@users.noreply.github.com> Date: Sat, 10 Apr 2021 18:06:29 +0300 Subject: [PATCH] Add files via upload --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c173813 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# REST api +## RESTful api written in Go`s standart library + +API has implementation of "GET", "POST", "PUT", "DELETE" http methods, allowing to Create, Read, Update and Delete json objects in database. + +The structure of a basic json object represents Go struct "RandomData" with exported fields "title" (string), "text" (string) and unexported fields "DateCreated" (time.Time), "LastUpdated" (time.Time) and ID (int64) + +Example of a single object stored in a json database : { + "ID": 1618064651615612586, + "DateCreated": "2021-04-10T14:24:11.615612068Z", + "LastUpdated": "2021-04-10T14:24:11.615612068Z", + "title": "Title", + "text": "text" + } + +This project was my first take on such thing. The goal was to create a basic working example and it looks like that I`ve achieved that goal. \ No newline at end of file