Pārlūkot izejas kodu

add link to read me

Nhu Nguyen 6 gadus atpakaļ
vecāks
revīzija
46ffffd276
1 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. 9
    9
      README.md

+ 9
- 9
README.md Parādīt failu

@@ -15,13 +15,13 @@ I will not answer the following questions:
15 15
 If you come to me, I will show you [LMGTFY](http://lmgtfy.com/)(Let me google that for you). I will answer anything related to why your code doesn't work. I will also answer design related questions. I will also help you construct the test if you know what message you want to write.
16 16
 
17 17
 ## Text response
18
-1. Add a `/hello` path which will return `world` as a response
19
-2. Add a `/form?key=value` path which will return the value as a response. For example if I call `/form?search=blue`, the server will return `blue`. If I call `/form?color=red`, the server will return `red`. The response code should be `201`.
20
-3. Add a `/404` path which will `Are you lost?` with `404` response code.
18
+1. Add a `http://localhost:5000/hello` path which will return `world` as a response
19
+2. Add a `http://localhost:5000/form?key=value` path which will return the value as a response. For example if I call `/form?search=blue`, the server will return `blue`. If I call `/form?color=red`, the server will return `red`. The response code should be `201`.
20
+3. Add a `http://localhost:5000/404` path which will `Are you lost?` with `404` response code.
21 21
 2. Edit the `/form?key=value` path so it will only response if it is a `POST` request. Any other type of request will a `404` response.
22 22
 
23 23
 ## Redirect
24
-1. Add a `/redirect` path which will redirect you to `http://google.com`
24
+1. Add a `http://localhost:5000/redirect` path which will redirect you to `http://google.com`
25 25
 
26 26
 ## Asynchronous requests
27 27
 Currently our server can handle one request at a time. This is called Synchronous. We want multiple users to access the server at the same time. This is called Asynchronous. Read up on the term [here](https://stackoverflow.com/questions/748175/asynchronous-vs-synchronous-execution-what-does-it-really-mean).
@@ -38,7 +38,7 @@ Currently our server can handle one request at a time. This is called Synchronou
38 38
 2. Add a new path `/files/[image_name]` (e.g. `/files/high5.gif`) will show the image
39 39
 
40 40
 ### Part 2
41
-1. Add a `/files` path. The files path will list out all the files in the `src/main/resources` folder in a list.
41
+1. Add a `http://localhost:5000/files` path. The files path will list out all the files in the `src/main/resources` folder in a list.
42 42
 2. Clicking on any of the file names will display the content of the file. If it is a picture, then show it as a picture.
43 43
 
44 44
 ## Bonus - ORM
@@ -46,9 +46,9 @@ Currently our server can handle one request at a time. This is called Synchronou
46 46
 2. Add a User class with two fields `long id` and `String name`
47 47
 3. Add the dao necessary to create retreive the user
48 48
   1. Create 3 users
49
-4. Add `/users` path to display all the users name in a list.
50
-5. Add `/users/1` to show information for the first user (their name and id)
49
+4. Add `http://localhost:5000/users` path to display all the users name in a list.
50
+5. Add `http://localhost:5000/users/1` to show information for the first user (their name and id)
51 51
 
52 52
 #### Super bonus
53
-1. Add `/users/new` path to show a form where user can enter a name to create a new user.
54
-2. Add `/users` with a `POST` method to accept the form information and create the user. Redirect to `/users/[user_id]`
53
+1. Add `http://localhost:5000/users/new` path to show a form where user can enter a name to create a new user.
54
+2. Add `http://localhost:5000/users` with a `POST` method to accept the form information and create the user. Redirect to `/users/[user_id]`