-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(lib, api): move sugar endpoints out of
lib
into api
Merge pull request #1777 from qri-io/ramfox/refactor_api_endpoints
- Loading branch information
Showing
5 changed files
with
35 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package api | ||
|
||
import ( | ||
"github.com/qri-io/qri/lib" | ||
) | ||
|
||
const ( | ||
// base endpoints | ||
|
||
// AEHome is the / endpoint | ||
AEHome = lib.APIEndpoint("/") | ||
// AEHealth is the service health check endpoint | ||
AEHealth = lib.APIEndpoint("/health") | ||
// AEIPFS is the IPFS endpoint | ||
AEIPFS = lib.APIEndpoint("/qfs/ipfs/{path:.*}") | ||
// AEWebUI serves the remote WebUI | ||
AEWebUI = lib.APIEndpoint("/webui") | ||
|
||
// dataset endpoints | ||
|
||
// AEGetCSVFullRef is the route used to get a body as a csv, that can also handle a specific hash | ||
AEGetCSVFullRef = lib.APIEndpoint("/ds/get/{username}/{name}/at/{fs}/{hash}/body.csv") | ||
// AEGetCSVShortRef is the route used to get a body as a csv | ||
AEGetCSVShortRef = lib.APIEndpoint("/ds/get/{username}/{name}/body.csv") | ||
// AEUnpack unpacks a zip file and sends it back | ||
AEUnpack = lib.APIEndpoint("/ds/unpack") | ||
) |
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