mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	drafts: Add an API endpoint for creating drafts.
This endpoint will allow a user to create drafts in bulk. Signed-off-by: Hemanth V. Alluri <hdrive1999@gmail.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							0e893b9045
						
					
				
				
					commit
					a0f71b7458
				
			@@ -193,6 +193,11 @@ v1_api_and_json_patterns = [
 | 
			
		||||
    path('zcommand', rest_dispatch,
 | 
			
		||||
         {'POST': 'zerver.views.message_send.zcommand_backend'}),
 | 
			
		||||
 | 
			
		||||
    # Endpoints for syncing drafts.
 | 
			
		||||
    path('drafts', rest_dispatch,
 | 
			
		||||
         {'POST': ('zerver.views.drafts.create_drafts',
 | 
			
		||||
                   {'intentionally_undocumented'})}),
 | 
			
		||||
 | 
			
		||||
    # messages -> zerver.views.message*
 | 
			
		||||
    # GET returns messages, possibly filtered, POST sends a message
 | 
			
		||||
    path('messages', rest_dispatch,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user