forked from confused-Techie/atom-backend
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Even better docs. Use the
endpoint.params
object to get details of …
…parameters from the `parameters` folder
- Loading branch information
1 parent
f1bad98
commit 6eed248
Showing
6 changed files
with
66 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
name: "direction", | ||
in: "query", | ||
schema: { | ||
type: "string", | ||
enum: [ | ||
"desc", | ||
"asc" | ||
], | ||
default: "desc" | ||
}, | ||
example: "desc", | ||
allowEmptyValue: true, | ||
description: "Direction to list search results." | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = { | ||
name: "page", | ||
in: "query", | ||
schema: { | ||
type: "number", | ||
minimum: 1, | ||
default: 1 | ||
}, | ||
example: 1, | ||
allowEmptyValue: true, | ||
description: "The page of available results to return." | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
name: "q", | ||
in: "query", | ||
schema: { | ||
type: "string" | ||
}, | ||
example: "generic-lsp", | ||
required: true, | ||
description: "Search query." | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
name: "sort", | ||
in: "query", | ||
schema: { | ||
type: "string", | ||
enum: [ | ||
"downloads", | ||
"created_at", | ||
"updated_at", | ||
"stars", | ||
"relevance" | ||
], | ||
default: "relevance" | ||
}, | ||
example: "downloads", | ||
allowEmptyValue: true, | ||
description: "Method to sort the results." | ||
}; |