Working with Data
GitRows implements a full CRUD interface to you data so you can create, read, update, and delete information in your repository data files. In the current version you can only read public data files with the GitRows API. If need to access other methods or private repos you can join the private beta by sending an email to beta@gitrows.com or use the js module instead.
GET
To read the complete data set from a .json
or .csv
file you make a get request to the API which has the basic structure of
https://api.gitrows.com/@namespace/owner/repository:branch/directory/file(.json|.csv)
Read more about the path structure and how to troubleshoot in the Path section of GitRows’ documentation.
curl -i -X GET https://api.gitrows.com/@github/gitrows/data/iris.json
HTTP/2 200
date: Fri, 22 May 2020 12:42:25 GMT
content-type: application/json
content-length: 13859
access-control-allow-origin: *
server: GitRows API Server
[{"sepalLength":5.1,"sepalWidth":3.5,"petalLength":1.4,"petalWidth":0.2,"species":"setosa"},...]
You can add filtering and aggregation operators as query strings, e.g. ?species=setosa
. Learn more about the available options in the Filters section.
Try the API
You can try the API with the API Explorer: