GithubHelp home page GithubHelp logo

spigetorg / api.spiget.org Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 246 KB

Spiget REST-API

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

License: Apache License 2.0

JavaScript 100.00%
spiget api rest rest-api

api.spiget.org's Introduction

api.spiget.org

Spiget REST-API

Uptime Robot ratio (7 days)

api.spiget.org's People

Contributors

baefell avatar inventivetalentdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

api.spiget.org's Issues

Add field for combined name+tag search

The SpigotMC website search queries by both name/title and tag by default (as far as I can tell). The /search/resources/{query} endpoint only accepts a field of name or tag. Please consider adding something of a both field to avoid having users make two separate requests.

Interacting with the API

Hey, I've recently attempted to implement this API in a project, but when accessing the API programmatically I can see it's behind Cloudflare which prevents requests from going through.
Is there something in the API docs I'm missing to register a token to circumvent this?

Cant search with symbols

When I try to find for example InvSee++ I got:

{
  "error": "Unexpected Exception",
  "msg": "Unexpected Exception. Please report this to https://github.com/SpiGetOrg/api.spiget.org/issues"
}%      

Steps to reproduce:
curl 'https://api.spiget.org/v2/search/resources/InvSee%2B%2B?field=name'

Webhook register not working

When ever I'm trying to register a Webhook the Server rejectes the request and does not register it.

Response Body:

{
  "error": "Unexpected Exception",
  "msg": "Unexpected Exception. Please report this to https://github.com/SpiGetOrg/api.spiget.org/issues"
}

Response Code:

500

Response Headers:

{
  "content-type": "application/json; charset=utf-8",
  "content-length": "144"
}

It would be nice if you could resolve this issue.

Invalid resource ID's doesn't always return a 404

When using the endpoint of api.spiget.org/v2/resources/1, it will return a code 404 as expected, as 1 is not a valid resource id.

However, when using the endpoints http://api.spiget.org/v2/resources/1/versions or http://api.spiget.org/v2/resources/1/versions/latest it returns [] and null respectively, but still returns an HTTP status code of 200. (OK)

"Unexpected Exception" when registering a webhook

I'm trying to register a webhook but I get an error
Already tried using https://spiget.org/webhook/

URL: https://api.spiget.org/v2/webhook/register/
Headers:

Content-Type: application/json
User-Agent: PostmanRuntime/7.28.0
Accept: */*

Request Body: (I'm using Glitch just for testing)

{
    "url": "http://yglitch-tests.glitch.me/",
    "events": ["resource-update"]
}

Response:

{
    "error": "Unexpected Exception",
    "msg": "Unexpected Exception. Please report this to https://github.com/SpiGetOrg/api.spiget.org/issues"
}

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.