Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Backend Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SpinShare
Backend Server
Commits
d188a39d
Commit
d188a39d
authored
Mar 01, 2021
by
Laura Heimann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added searchCharts documentation, added searchUsers documentation, deprecated searchAll and search
parent
fcd14966
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
144 additions
and
4 deletions
+144
-4
templates/apidocs/open/discovery.html.twig
templates/apidocs/open/discovery.html.twig
+144
-4
No files found.
templates/apidocs/open/discovery.html.twig
View file @
d188a39d
...
@@ -36,7 +36,14 @@
...
@@ -36,7 +36,14 @@
</tr>
</tr>
</table>
</table>
<br
/><br
/>
<br
/>
<div
class=
"alert alert-secondary"
role=
"alert"
>
<h4
class=
"alert-heading"
>
Deprecation Notice
</h4>
This API-Call will be removed at a later point and shouldn't be used anymore.
</div>
<br
/>
<strong>
Output Body
</strong>
<strong>
Output Body
</strong>
<pre
class=
"code"
>
<pre
class=
"code"
>
...
@@ -83,6 +90,130 @@
...
@@ -83,6 +90,130 @@
</pre>
</pre>
</div>
</div>
<div
class=
"card"
id=
"searchCharts"
>
<h2
class=
"card-title"
>
Search Charts
</h2>
<p>
Returns charts based on the
<code
class=
"code"
>
searchQuery
</code>
provided.
</p>
<table
class=
"table table-bordered"
>
<tr>
<th>
Method
</th>
<td>
GET
</td>
</tr>
<tr>
<th>
Endpoint
</th>
<td>
/searchCharts
</td>
</tr>
<tr>
<th>
JSON Body
</th>
<td>
(string) searchQuery
<br
/>
(bool) diffEasy
<br
/>
(bool) diffNormal
<br
/>
(bool) diffHard
<br
/>
(bool) diffExpert
<br
/>
(bool) diffXD
<br
/>
(int) diffRatingFrom
<br
/>
(int) diffRatingTo
<br
/>
(bool) showExplicit
</td>
</tr>
</table>
<br
/><br
/>
<strong>
Output Body
</strong>
<pre
class=
"code"
>
{
"version":1,
"status":200,
"data":[
{
"id": 13,
"title": "I'm Just",
"subtitle": "Remix",
"artist": "Artizan",
"charter": "TreXDer",
"uploader": 1,
"fileReference": "spinshare_600f0dcfd717b",
"tags": [
"poggers",
"schmoggers",
"stride"
],
"views": 18,
"downloads": 5,
"isExplicit": false,
"publicationStatus": 0,
"hasEasyDifficulty": false,
"hasNormalDifficulty": false,
"hasHardDifficulty": true,
"hasExtremeDifficulty": true,
"hasXDDifficulty": true,
"easyDifficulty": false,
"normalDifficulty": false,
"hardDifficulty": 22,
"expertDifficulty": 31,
"XDDifficulty": 45,
"uploadDate": {
"date": "2021-01-25 19:28:31.000000",
"timezone_type": 3,
"timezone": "Europe\/Berlin"
},
"updateDate": {
"date": "2021-02-03 23:15:32.000000",
"timezone_type": 3,
"timezone": "Europe\/Berlin"
},
"updateHash": "ab6f6ce4942623196537ea19bc8e6b3f",
"description": null,
"cover": "https:\/\/spinsha.re\/uploads\/cover\/spinshare_600f0dcfd717b.png",
"zip": "https:\/\/spinsha.re\/api\/song\/13\/download"
},
...
]
}
</pre>
</div>
<div
class=
"card"
id=
"searchUsers"
>
<h2
class=
"card-title"
>
Search Users
</h2>
<p>
Returns users based on the
<code
class=
"code"
>
searchQuery
</code>
provided.
</p>
<table
class=
"table table-bordered"
>
<tr>
<th>
Method
</th>
<td>
GET
</td>
</tr>
<tr>
<th>
Endpoint
</th>
<td>
/searchUsers
</td>
</tr>
<tr>
<th>
JSON Body
</th>
<td>
(string) searchQuery
</td>
</tr>
</table>
<br
/><br
/>
<strong>
Output Body
</strong>
<pre
class=
"code"
>
{
"version": 1,
"status": 200,
"data": [
{
"id": 2,
"username": "taw.moe",
"isVerified": null,
"isPatreon": null,
"pronouns": "she\/her",
"avatar": "https:\/\/spinshare.b-cdn.net\/assets\/img\/defaultAvatar.jpg"
},
...
]
}
</pre>
</div>
<div
class=
"card"
id=
"searchAll"
>
<div
class=
"card"
id=
"searchAll"
>
<h2
class=
"card-title"
>
Search All
</h2>
<h2
class=
"card-title"
>
Search All
</h2>
<p>
Returns all songs and users.
</p>
<p>
Returns all songs and users.
</p>
...
@@ -98,7 +229,14 @@
...
@@ -98,7 +229,14 @@
</tr>
</tr>
</table>
</table>
<br
/><br
/>
<br
/>
<div
class=
"alert alert-secondary"
role=
"alert"
>
<h4
class=
"alert-heading"
>
Deprecation Notice
</h4>
This API-Call will be removed at a later point and shouldn't be used anymore.
</div>
<br
/>
<strong>
Output Body
</strong>
<strong>
Output Body
</strong>
<pre
class=
"code"
>
<pre
class=
"code"
>
...
@@ -385,8 +523,10 @@
...
@@ -385,8 +523,10 @@
<div
class=
"content"
>
<div
class=
"content"
>
<div
class=
"on-this-page-nav"
>
<div
class=
"on-this-page-nav"
>
<div
class=
"title"
>
On this page
</div>
<div
class=
"title"
>
On this page
</div>
<a
href=
"#search"
>
Search
</a>
<a
href=
"#search"
><span
class=
"badge badge-secondary"
>
Deprecated
</span>
Search
</a>
<a
href=
"#searchAll"
>
Search All
</a>
<a
href=
"#searchCharts"
>
Search Charts
</a>
<a
href=
"#searchUsers"
>
Search Users
</a>
<a
href=
"#searchAll"
><span
class=
"badge badge-secondary"
>
Deprecated
</span>
Search All
</a>
<a
href=
"#new"
>
New Songs
</a>
<a
href=
"#new"
>
New Songs
</a>
<a
href=
"#updated"
>
Updated Songs
</a>
<a
href=
"#updated"
>
Updated Songs
</a>
<a
href=
"#hotThisWeek"
>
Hot This Week Songs
</a>
<a
href=
"#hotThisWeek"
>
Hot This Week Songs
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment