mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47:59 +03:00 
			
		
		
		
	fixed indentations
This commit is contained in:
		
							parent
							
								
									fcbae5d99f
								
							
						
					
					
						commit
						8e9408115d
					
				| 
						 | 
					@ -340,9 +340,11 @@ You can install httpie using pip:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Finally, we can get a list of all of the snippets:
 | 
					Finally, we can get a list of all of the snippets:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	http http://127.0.0.1:8000/snippets/ --body
 | 
					    http http://127.0.0.1:8000/snippets/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	[
 | 
					    HTTP/1.1 200 OK
 | 
				
			||||||
 | 
					    ...
 | 
				
			||||||
 | 
					    [
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
        "id": 1,
 | 
					        "id": 1,
 | 
				
			||||||
        "title": "",
 | 
					        "title": "",
 | 
				
			||||||
| 
						 | 
					@ -367,7 +369,7 @@ Or we can get a particular snippet by referencing its id:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    HTTP/1.1 200 OK
 | 
					    HTTP/1.1 200 OK
 | 
				
			||||||
    ...
 | 
					    ...
 | 
				
			||||||
	{
 | 
					    {
 | 
				
			||||||
      "id": 2,
 | 
					      "id": 2,
 | 
				
			||||||
      "title": "",
 | 
					      "title": "",
 | 
				
			||||||
      "code": "print \"hello, world\"\n",
 | 
					      "code": "print \"hello, world\"\n",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -127,7 +127,7 @@ Go ahead and test the API from the command line, as we did in [tutorial part 1][
 | 
				
			||||||
 | 
					
 | 
				
			||||||
We can get a list of all of the snippets, as before.
 | 
					We can get a list of all of the snippets, as before.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	http http://127.0.0.1:8000/snippets/
 | 
					    http http://127.0.0.1:8000/snippets/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    HTTP/1.1 200 OK
 | 
					    HTTP/1.1 200 OK
 | 
				
			||||||
    ...
 | 
					    ...
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user