PHP Classes

File: Examples/HelloWorld/routes.json

Recommend this page to a friend!
  Classes of Virgilio lino   PHP OpenAPI Dispatcher   Examples/HelloWorld/routes.json   Download  
File: Examples/HelloWorld/routes.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP OpenAPI Dispatcher
Dispatch requests to controllers defined in files
Author: By
Last change: Refactoring of the code in terms of a more SOLID solution.
-Removed hard dependencies on Slim/Request, Slim/Response and Container
instead we're now relying on PSR Interfaces.
-CommandHandlers are not anymore magically loaded from the full
namespace, instead, those muset be injected and then loaded from the
dependency container
-By doing those changes we're nearly not depending on Slim. This library
will be usable on other frameworks. We need just to remove the hard
dependency on the slim App
Date: 6 years ago
Size: 1,484 bytes


Class file image Download
{ "swagger": "2.0", "info": { "description": "Sample hello world application using slim and SlimSwaggerDispatcher as automatic router generator \n[](\n", "version": "1.0.0", "title": "Hello world", "termsOfService": "", "contact": { "email": "" }, "license": { "name": "Apache 2.0", "url": "" } }, "tags": [ { "name": "framework" } ], "paths": { "/hello/{name}": { "get": { "tags": [ "hello" ], "summary": "Sample route", "description": "Return the standard greetings", "operationId": "HelloWorld", "produces": [ "application/json" ], "parameters": [ { "name": "name", "in": "path", "description": "thing to greet", "required": true, "type": "string" } ], "responses": { "200": { "description": "successful operation" }, "400": { "description": "Invalid Greeting Suplied" }, "404": { "description": "Resource not found" } } } } }, "schemes": [ "https", "http" ], "host": "" }