src/snac/server/ServerExecutor.php
/**
     * Create New SNAC institution
     *
     * Takes an existing SNAC constellation id and inserts it as an affiliated institution in SNAC.
     *
     * @param string[] $input Input array with constellationid key.
     * @return string[] The response to send to the client
     */
Create New SNAC institution
Takes an existing SNAC constellation id and inserts it as an affiliated institution in SNAC.

@param string[] $input Input array with constellationid key.
@return string[] The response to send to the client
Create New SNAC institution Takes an existing SNAC constellation id and inserts it as an affiliated institution in SNAC . @param string [] $input Input array with constellationid key . @return string [] The response to send to the client
public function createInstitution($input) {
        $response = [
            "result" => "failure"
        ];
        $constellation = $this->cStore->readPublishedConstellationByID($input["constellationid"], \snac\server\database\DBUtil::$READ_MICRO_SUMMARY);
        if ($constellation) {
            $inserted = $this->uStore->writeInstitution($constellation);
            if ($inserted) {
                $response = [
                    "result" => "success",
                    "constellation" =>  $constellation->toArray()
                ];
            } else {
                $response["error"] = "Could not write Institution";
            }
        } else {
            $response["error"] = "No Constellation found";
        }
        return $response;
    }
public function createInstitution ( $ input ) { $ response = [ " result " => " failure " ] ; $ constellation = $ this -> cStore -> readPublishedConstellationByID ( $ input [ " constellationid " ] , \ snac \ server \ database \ DBUtil :: $ READ_MICRO_SUMMARY ) ; if ( $ constellation ) { $ inserted = $ this -> uStore -> writeInstitution ( $ constellation ) ; if ( $ inserted ) { $ response = [ " result " => " success " , " constellation " => $ constellation -> toArray ( ) ] ; } else { $ response [ " error " ] = " Could not write Institution " ; } } else { $ response [ " error " ] = " No Constellation found " ; } return $ response ; }
Create New SNAC institution
 Takes an existing SNAC constellation id and inserts it as an affiliated institution in SNAC.
Create New SNAC institution Takes an existing SNAC constellation id and inserts it as an affiliated institution in SNAC .
// Try to read the constellation