generated from api-platform/api-platform
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76a6fcc
commit 2531b6a
Showing
16 changed files
with
371 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# AUTHORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Roadmap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
publiccodeYmlVersion: "0.2" | ||
|
||
name: pc | ||
applicationSuite: commonground | ||
url: "https://github.com/ConductionNL/Proto-component-commonground" | ||
landingURL: "pc.zaakonline.nl" | ||
isBasedOn: "https://github.com/ConductionNL/Proto-component-commonground.git" softwareVersion: "V.0.1" | ||
releaseDate: "2019-28-12" | ||
logo: pc.zaakonline.nl | ||
monochromeLogo: img/logo-mono.svg | ||
|
||
inputTypes: | ||
- application/json | ||
- application/xml | ||
|
||
outputTypes: | ||
- application/json | ||
- application/ld+json | ||
- application/hal+json | ||
- application/vnd.api+json | ||
- application/health+json | ||
- application/xml | ||
- application/x-yaml | ||
- text/csv | ||
- text/html | ||
|
||
platforms: | ||
- web | ||
|
||
categories: | ||
- it-development | ||
|
||
usedBy: | ||
- Gemeente Utrecht | ||
- Gemeente Den Haag | ||
- Gemeente Hoorn | ||
|
||
|
||
roadmap: "https://github.com/ConductionNL/Proto-component-commonground/blob/master/ROADMAP.md" | ||
|
||
developmentStatus: development | ||
|
||
softwareType: "standalone/other" | ||
|
||
#intendedAudience: | ||
# scope: | ||
# - science-and-technology | ||
# countries: | ||
# - it | ||
# - de | ||
# unsupportedCountries: | ||
# - us | ||
|
||
description: | ||
en: | ||
# localisedName: Medusa | ||
# genericName: Text Editor | ||
# shortDescription: > | ||
# This description can have a maximum 150 | ||
# characters long. We should not fill the | ||
# remaining space with "Lorem Ipsum". End | ||
# | ||
# longDescription: > | ||
# Very long description of this software, also split | ||
# on multiple rows. You should note what the software | ||
# is and why one should need it. | ||
|
||
documentation: "https://github.com/ConductionNL/Proto-component-commonground/blob/master/README.md" | ||
apiDocumentation: "pc.zaakonline.nl" | ||
# | ||
# features: | ||
# - Very important feature | ||
# - Will run without a problem | ||
# - Has zero bugs | ||
# - Solves all the problems of the world | ||
# screenshots: | ||
# - img/sshot1.jpg | ||
# - img/sshot2.jpg | ||
# - img/sshot3.jpg | ||
# videos: | ||
# - https://youtube.com/xxxxxxxx | ||
# awards: | ||
# - 1st Price Software of the year | ||
|
||
legal: | ||
license: EUPL-1.2 | ||
mainCopyrightOwner: Conduction | ||
repoOwner: Conduction | ||
authorsFile: AUTHORS.md | ||
|
||
maintenance: | ||
type: "internal" | ||
|
||
contractors: | ||
- name: "Conduction B.V" | ||
email: "[email protected]" | ||
website: "https://www.conduction.nl" | ||
until: "2099-01-01" | ||
|
||
contacts: | ||
- name: Ruben van der Linde | ||
email: "[email protected]" | ||
affiliation: "Conduction B.V" | ||
|
||
localisation: | ||
localisationReady: yes | ||
availableLanguages: | ||
- en | ||
- nl | ||
|
||
dependsOn: | ||
open: | ||
- name: Kubernetes | ||
versionMin: "1.15.5-do.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
|
||
// src/Command/CreateUserCommand.php | ||
|
||
namespace App\Command; | ||
|
||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Exception\InvalidOptionException; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Input\InputOption; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
use Symfony\Component\Console\Style\SymfonyStyle; | ||
use Twig\Environment; | ||
|
||
class PubliccodeCommand extends Command | ||
{ | ||
private $twig; | ||
|
||
public function __construct(Environment $twig) | ||
{ | ||
$this->twig = $twig; | ||
|
||
parent::__construct(); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function configure() | ||
{ | ||
$this | ||
->setName('app:publiccode:update') | ||
// the short description shown while running "php bin/console list" | ||
->setDescription('Creates a new public chart.') | ||
|
||
// the full command description shown when running the command with | ||
// the "--help" option | ||
->setHelp('see ehttps://github.com/italia/publiccode.yml') | ||
->setDescription('Publiccode.yml is a metadata standard for repositories containing software developed or acquired by the Public Administration, aimed at making them easily discoverabile and thus reusable by other entities.By including a publiccode.yml file in the root of a repository, and populating it with information about the software, technicians and civil servants can evaluate it. Automatic indexing tools can also be built, since the format is easily readable by both humans and machines.') | ||
->addOption('location', null, InputOption::VALUE_OPTIONAL, 'Write output to files in the given location', '/srv/api/public/schema/') | ||
->addOption('spec-version', null, InputOption::VALUE_OPTIONAL, 'Publiccode version to use ("0.1.0")', '0.1.0'); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$io = new SymfonyStyle($input, $output); | ||
/** @var string $version */ | ||
$version = $input->getOption('spec-version'); | ||
|
||
//if (!\in_array($version, ['0.1.0'], true)) { | ||
// throw new InvalidOptionException(sprintf('This tool only supports version 2 and 3 of the OpenAPI specification ("%s" given).', $version)); | ||
//} | ||
|
||
$publiccode = $this->twig->render('publiccode/publiccode.yaml.twig'); | ||
|
||
if (!empty($location = $input->getOption('location')) && \is_string($location)) { | ||
file_put_contents($location.'/publiccode.yaml', $publiccode); | ||
$io->success(sprintf('Data written to %s/publiccode.yaml (specification version %s).', $location, $version)); | ||
} else { | ||
// outputs multiple lines to the console (adding "\n" at the end of each line) | ||
$output->writeln([ | ||
'Publiccode Chart', | ||
'============', | ||
$chart, | ||
]); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.