forked from grumpydevelop/federator
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/**
 | 
						|
 * SPDX-FileCopyrightText: 2024 Sascha Nitsch (grumpydeveloper) https://contentnation.net/@grumpydevelop
 | 
						|
 * SPDX-License-Identifier: GPL-3.0-or-later
 | 
						|
 *
 | 
						|
 * @author Sascha Nitsch (grumpydeveloper)
 | 
						|
 **/
 | 
						|
 | 
						|
namespace Federator\Api;
 | 
						|
 | 
						|
/**
 | 
						|
 * API interface
 | 
						|
 */
 | 
						|
interface V1
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * run given url path
 | 
						|
     * @param string[] $paths path array split by /
 | 
						|
     * @return bool true on success
 | 
						|
     */
 | 
						|
    public function exec($paths) : bool;
 | 
						|
 | 
						|
    /**
 | 
						|
     * get internal represenation as json string
 | 
						|
     * @return string json string or html
 | 
						|
     */
 | 
						|
    public function toJson() : string;
 | 
						|
}
 |