GithubHelp home page GithubHelp logo

spigetorg / restapi Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 99 KB

[outdated] The Spiget RestAPI (v2)

Home Page: https://api.spiget.org/v2

License: Apache License 2.0

PHP 100.00%
spiget api rest rest-api

restapi's People

Contributors

captainyarb avatar inventivetalentdev avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

captainyarb

restapi's Issues

<resource>/download should follow external download links

If you try to download a file from a resource that links to an external download it will claim that no file was found. It would be nice to redirect to the external link instead.

Optionally this could also filter the external links to only redirect to ones that seem to actually link to files (ending in .jar/.zip) to not try to download some site although such a filter would be really error prone (e.g. with sites like Dropbox and Mediafire lying about the type of the response)

Using the version name in /<resource>/version returns versions for a different resource

Using the version's name as the selector in /resources/<resource>/version returns version information about completely different resources.
This is likely due to the usage of ´is_numeric` as a check whether the version-ID or name was used in the URL (https://github.com/SpiGetOrg/RestAPI/blob/master/public/v2/index.php#L239)
Due to the cast to an integer, it selects the object ID if the requested name happens to be a double (https://github.com/SpiGetOrg/RestAPI/blob/master/public/v2/index.php#L261)

Dependancies not listed

This php app doesn't include a list of dependencies, which makes contributing a little cumbersome. It's difficult to know what versions of your dependencies you're using (such as slim). As a recommendation using something like Composer would make this much easier.

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.