mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-02 19:36:12 +01:00 
			
		
		
		
	
		
			
	
	
		
			13 lines
		
	
	
		
			345 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			345 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								POST {{triliumHost}}/etapi/notes/root/import
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								Content-Type: application/octet-stream
							 | 
						||
| 
								 | 
							
								Content-Transfer-Encoding: binary
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								< ../db/demo.zip
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {%
							 | 
						||
| 
								 | 
							
								    client.assert(response.status === 201);
							 | 
						||
| 
								 | 
							
								    client.assert(response.body.note.title == "Trilium Demo");
							 | 
						||
| 
								 | 
							
								    client.assert(response.body.branch.parentNoteId == "root");
							 | 
						||
| 
								 | 
							
								%}
							 |