GithubHelp home page GithubHelp logo

emslade / interactive-service-description Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 2.0 1.7 MB

Generates documentation from Guzzle service description

Home Page: http://service-docs.adeslade.co.uk

PHP 22.84% JavaScript 0.43% CSS 76.73%

interactive-service-description's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

interactive-service-description's Issues

Absolute URIs get grouped incorrectly

In a Guzzle service description it's possible to set the URI of an operation to an absolute uri, when the end-point for a particular operation is not just a relative path from the baseURL e.g.

 //Service level
 'baseUrl' => "https://api.github.com",

 //Operation level
 'uri' => 'https://github.com/login/oauth/access_token',

The operations that are defined with an absolute URI are groups under "https:"

httpsgroup

Expanding this shows the actual operations:

httpsexpanded

which probably should have been grouped under 'user' and 'login'.

cheers
Dan

Responsive design for pages

I realise it's not going to be a high priority for you guys, as you presumably have nice big monitors, but it would be great if you supported a bit of responsive design for us peons who are on 13" laptops.

For the operation below, it has ten possible parameters but only 4 are visible at once for me.

scrolly

Supporting testing services better

Currently it seems that the javascript compiles all the parameters into a uri, header parameters and params. It would be better if instead of doing that, the operation name was sent to the server, along with the raw parameters and then allow Guzzle to create the actual operation from the parameters.

This would make it easy to allow the Guzzle features of:

sentAs - Parameters can be sent as a different name to how they are named in the service with the sentAs property.

Filter params - Parameters can have a filter property which modifies the parameter between when it is submitted to guzzle and when it is sent to the actual api. https://guzzle3.readthedocs.org/webservice-client/guzzle-service-descriptions.html#filters

Response class - Some operations can require a bit of processing after the response is received, due either to the responseModel option being used, or the guzzle client being extended to account for the API provider 'bespoke'* implementations of Oauth, or any other reasons why the direct result of the API call needs to be poked a bit after being called.

Secure parameters - Some parameters shouldn't be sent to the client, and can only be set on the server e.g. oauth tokens or api secret keys should only live on the server.

All of the above should be easy to support/allow just be sending the operation name with the raw commands. e.g. something like ee4b8f2

The proxy should then be able to build the complete operation from the raw params.

btw you don't have a license file in this project....

*aka buggy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.