mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-26 17:41:34 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTTP
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTTP
		
	
	
	
	
	
| GET {{triliumHost}}/etapi/inbox/2022-01-01
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {% client.assert(response.status === 200); %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/days/2022-01-01
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {% client.assert(response.status === 200); %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/days/2022-1
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {%
 | |
|     client.assert(response.status === 400);
 | |
|     client.assert(response.body.code === "DATE_INVALID");
 | |
| %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/weeks/2022-01-01
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {% client.assert(response.status === 200); %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/weeks/2022-1
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {%
 | |
|     client.assert(response.status === 400);
 | |
|     client.assert(response.body.code === "DATE_INVALID");
 | |
| %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/months/2022-01
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {% client.assert(response.status === 200); %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/months/2022-1
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {%
 | |
|     client.assert(response.status === 400);
 | |
|     client.assert(response.body.code === "MONTH_INVALID");
 | |
| %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/years/2022
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {% client.assert(response.status === 200); %}
 | |
| 
 | |
| ###
 | |
| 
 | |
| GET {{triliumHost}}/etapi/calendar/years/202
 | |
| Authorization: {{authToken}}
 | |
| 
 | |
| > {%
 | |
|     client.assert(response.status === 400);
 | |
|     client.assert(response.body.code === "YEAR_INVALID");
 | |
| %}
 | 
