Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hyperdriven/hyperdrive
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: param-binding
Choose a base ref
...
head repository: hyperdriven/hyperdrive
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 25 files changed
  • 1 contributor

Commits on Mar 16, 2017

  1. adds code quality indicators (#48)

    * adds code quality indicators
    
    - adds code coverage to test run
    - integrates with coveralls.io
    - adds badge for coveralls and gograde
    - fixes typos caught by gograde
    
    * improves test coverage (low hanging fruit)
    
    * adds license badge to README
    
    * more low hanging fruit
    xentek authored Mar 16, 2017
    Configuration menu
    Copy the full SHA
    38fdacc View commit details
    Browse the repository at this point in the history
  2. updates coveralls badge

    xentek committed Mar 16, 2017
    Configuration menu
    Copy the full SHA
    b9689bf View commit details
    Browse the repository at this point in the history
  3. fix typo

    xentek committed Mar 16, 2017
    Configuration menu
    Copy the full SHA
    c53410c View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2017

  1. adds param struct tag (#50)

    Given an `Endpointer` struct like this one:
    
    ```go
    type TaggedStruct struct {
    	*Endpoint
    	TestParam         string `param:"test_param;a=GET,PUT;r=PUT"`
    	TestParamDefault  string `param:"test_param_default"`
    	TestParamEmpty    string `param:""`
    	TestParamRequired string `param:"test_param_required;a=GET;r=PUT"`
    }
    ```
    
    We apply the following parsing rules:
    
    - `TestParam` has specified `test_param` as the `key` which will map the
    incoming input from an HTTP request to the field on the endpoint. It has
    also specified `GET` and `PUT` requests to allow the param. Other
    requests will strip it out (when that gets implemented). It has
    specified `PUT` to require the param. `PUT` requests will throw an error
    if `test_param` is not present in the request (when that gets implemented).
    - `TestParamDefault` has specified a `key` of `test_param_default`. It
    will default to allowing the param on `GET`, `PATCH`, `POST` and `PUT`
    requests, and not require it on any of those allowed requests.
    - `TestParamEmpty` has not specified any directives, and will use
    `TestParamEmpty` as the `key`. It will allow the param on `GET`, `PATCH`,
    `POST` and `PUT` requests, which is the default, and not require it on
    any of the allowed requests.
    - `TestParamRequired` will allow and require `PUT` requests, even though
    `PUT` was omitted from the `allowed` list.
    
    fixes #49
    xentek authored Mar 20, 2017
    Configuration menu
    Copy the full SHA
    c216382 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2017

  1. adds support for parsing allowed/required params (#51)

    - adds `GetParams()` function to be used in method handlers for getting
    only allowed params and returning an error if any required params are
    missing.
    
    fixes #42
    xentek authored Mar 22, 2017
    Configuration menu
    Copy the full SHA
    2f9739b View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2017

  1. adds support for self-describing Parameters (#52)

    - users can now create custom types that have `GetName` and `GetDesc`
    functions, these names and descriptions are used by all endpoints that
    add the param, allowing for reuse of common types.
    - All params are now returned by the discovery url, providing additional
    information to API clients
    
    fixes #43
    xentek authored Mar 27, 2017
    Configuration menu
    Copy the full SHA
    e77c46d View commit details
    Browse the repository at this point in the history
  2. updates changelog for v0.0.5

    xentek committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    2a54960 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2017

  1. adds vim comment

    xentek committed Apr 4, 2017
    Configuration menu
    Copy the full SHA
    6be53da View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2021

  1. Update README.md

    xentek authored Feb 1, 2021
    Configuration menu
    Copy the full SHA
    886e85e View commit details
    Browse the repository at this point in the history
Loading