Skip to content

Commit

Permalink
feat(dredd): add sample for Dredd — php-silex
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyar committed Jan 16, 2019
1 parent e0c7a7f commit 628fbc9
Show file tree
Hide file tree
Showing 9 changed files with 722 additions and 0 deletions.
1 change: 1 addition & 0 deletions dredd/php-silex/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
5 changes: 5 additions & 0 deletions dredd/php-silex/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
before_install:
- npm install dredd@5.3.0 --no-optional --global
before_script:
- dredd
25 changes: 25 additions & 0 deletions dredd/php-silex/api-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
swagger: "2.0"
info:
version: "1.0"
title: Example API
license:
name: MIT
host: www.example.com
basePath: /
schemes:
- http
paths:
/:
get:
produces:
- application/json; charset=utf-8
responses:
200:
description: ""
schema:
type: object
properties:
message:
type: string
required:
- message
11 changes: 11 additions & 0 deletions dredd/php-silex/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "dredd-php-silex",
"version": "1.0.0",
"description": "Sample dredd via silex",
"require": {
"silex/silex": "~1.2"
},
"require-dev": {
"ddelnano/dredd-hooks-php": "^1.1"
}
}
Loading

0 comments on commit 628fbc9

Please sign in to comment.