From d2210c9f924b9883c556e6be40f63f5e9b8d5488 Mon Sep 17 00:00:00 2001 From: lee Date: Mon, 13 Dec 2021 11:43:37 +0000 Subject: [PATCH] corrections for issue #897 --- subjects/ascii-art-web/export-file/README.md | 8 +++++++- subjects/groupie-tracker/search-bar/README.md | 9 +++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/subjects/ascii-art-web/export-file/README.md b/subjects/ascii-art-web/export-file/README.md index 411446419..6d8f1268b 100644 --- a/subjects/ascii-art-web/export-file/README.md +++ b/subjects/ascii-art-web/export-file/README.md @@ -9,8 +9,14 @@ Ascii-art-web-export consists on making sure that it is possible to export the o - You should be able to export the result of the [ascii-art](../../ascii-art/README.md) project implemented in the website. - The file must be exported with the right permissions (**read and write**) for the user. +The _Hypertext Transfer Protocol_ (HTTP) is the foundation of data communication for the World Wide Web (www). When sending a file or image as part of the HTTP response we must include the use of [HTTP headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers). + +Headers used for file transfer are [Content-Type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type), [Content-Length](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Length) and [Content-Disposition](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition) and more if needed, but for this project you will be obligated to use those headers. + ### Instructions +As you already learned from the previous project you must create a new HTTP endpoint to be able to transfer the file to the client. The following instructions must also be followed : + - The web server must export at least in one export format. - The web server must be created in **Go**. - The web site must include a button or a link to download/export the file. @@ -27,6 +33,6 @@ This project will help you learn about : - Portable Document Format (pdf) - Text File (txt) - [Here are some more examples](https://en.wikipedia.org/wiki/Document_file_format) -- HTTP headers +- [HTTP headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers) - Ways to receive data. - Ways to output data. diff --git a/subjects/groupie-tracker/search-bar/README.md b/subjects/groupie-tracker/search-bar/README.md index 2718c7158..31b5152c3 100644 --- a/subjects/groupie-tracker/search-bar/README.md +++ b/subjects/groupie-tracker/search-bar/README.md @@ -5,6 +5,7 @@ You must follow the same [principles](../README.md) as the first subject. Groupie tracker search bar consists of creating a functional program that searches, inside your website, for a specific text input. +So the focus of this project is to create a way for the client to search a member or artist or any other attribute in the data system you made. - The program should handle at least these search cases : - artist/band name @@ -17,6 +18,14 @@ Groupie tracker search bar consists of creating a functional program that search - The search bar must identify and display in each suggestion the individual type of the search cases. (ex: Freddie Mercury -> member) - For example if you start writing `"phil"` it should appear as suggestions `Phil Collins - member` and `Phil Collins - artist/band`. This is just an example of a display. +### Example + +Lets imagine you have created a card system to display the band data. The user can be able to search directly for the band he needs. Here is an example: + +- While the user is typing for the member he desires to see, the search bar gives the suggestion of all the possible options. + +![image](searchExample.png) + ### Instructions - The program must be written in **Go**.