mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
	
	
		
			38 lines
		
	
	
		
			881 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			38 lines
		
	
	
		
			881 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								GET {{triliumHost}}/etapi/notes/root/export
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {%
							 | 
						||
| 
								 | 
							
								    client.assert(response.status === 200);
							 | 
						||
| 
								 | 
							
								    client.assert(response.headers.valueOf("Content-Type") == "application/zip");
							 | 
						||
| 
								 | 
							
								%}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								###
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								GET {{triliumHost}}/etapi/notes/root/export?format=html
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {%
							 | 
						||
| 
								 | 
							
								    client.assert(response.status === 200);
							 | 
						||
| 
								 | 
							
								    client.assert(response.headers.valueOf("Content-Type") == "application/zip");
							 | 
						||
| 
								 | 
							
								%}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								###
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								GET {{triliumHost}}/etapi/notes/root/export?format=markdown
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {%
							 | 
						||
| 
								 | 
							
								    client.assert(response.status === 200);
							 | 
						||
| 
								 | 
							
								    client.assert(response.headers.valueOf("Content-Type") == "application/zip");
							 | 
						||
| 
								 | 
							
								%}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								###
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								GET {{triliumHost}}/etapi/notes/root/export?format=wrong
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {%
							 | 
						||
| 
								 | 
							
								    client.assert(response.status === 400);
							 | 
						||
| 
								 | 
							
								    client.assert(response.body.code === "UNRECOGNIZED_EXPORT_FORMAT");
							 | 
						||
| 
								 | 
							
								%}
							 |