Spiget REST-API
spigetorg / api.spiget.org Goto Github PK
View Code? Open in Web Editor NEWSpiget REST-API
Home Page: https://api.spiget.org/v2
License: Apache License 2.0
Spiget REST-API
Home Page: https://api.spiget.org/v2
License: Apache License 2.0
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.
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?
Registering new webhook returns error code 500.
Response Body
{
"error": "Unexpected Exception",
"msg": "Unexpected Exception. Please report this to https://github.com/SpiGetOrg/api.spiget.org/issues"
}
Response Code
500
Doesn't work via the web form either.
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'
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.
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)
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"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.