scalingo / developers-documentation Goto Github PK
View Code? Open in Web Editor NEWScalingo API Reference
Home Page: https://developers.scalingo.com
Scalingo API Reference
Home Page: https://developers.scalingo.com
To prevent confusion with the token used for our main API.
The details of the object returned by the following API endpoint is missing :
-> https://api.scalingo.com/v1/apps/:app_id/addons/:addon_id/sso
The notifier webhook is still talking about notification and not notifier.
Plus not every params are documented.
Example of endpoint to add:
/v1/apps/APP_ID/stats/cpu/web?since=3&last=true
with possibility to substitute swap
by cpu
and web
by the container type.
Related conversation: https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/all/conversations/12375700009181
The route /account/usage
is missing from the documentation.
No account-related endpoints are currently documented (self, update, disabling, etc).
We should specify that the token used for this API is not the same as the one used for the main API.
The limits
field is currently missing from payloads in the dev doc.
limits
fields in the payload of application (list and show app requests) => https://developers.scalingo.com/apps#list-your-applications and https://developers.scalingo.com/apps#get-a-precise-applicationSCM events are missing, for example.
Check if other events are missing.
{
"id": "5e98705db94df700013b7a30",
"created_at": "2020-04-16T14:49:01.573Z",
"type": "link_scm",
"app_id": "5e98705db94df700013b7a2c",
"app_name": "sample-node-express-pr1",
"user": {
"username": "test",
"email": "[email protected]",
"id": "us-5bdndc3-6421-40ef-96f6-c4fd83935a2d"
},
"type_data": {
"repo_name": "test/sample-node-express",
"linker_username": "test",
"source": "https://github.com/test/sample-node-express"
}
}
show to get a single notification platform from its ID
search to get a single notification platform from its name
Inside the returned object of an application, in addition to the url field, which returns either the scalingo app url or the canonical when there is one, it should also return the base url that corresponds to the scalingo app url (e.g exemple-app.scalingo.io).
POST https://$DB_API_URL/api/databases/[:db_id]/upgrade
Related intercom conv: https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/all/conversations/12375700034166
Related slack conv: https://scalingo.slack.com/archives/C03T384J3/p1620131383039300
Doc indicates that an array is return even for those singular-resource methods, which is not what the API is actually returning. https://developers.scalingo.com/keys#get-a-precise-ssh-key
Cf this PR https://github.com/Scalingo/go-scalingo/pull/187/files for the response format
We currently have 3 different API and those three APIs use 3 different tokens/auth methods. It would be nice to add a page explaining how the authentication work between those APIs.
https://developers.scalingo.com/notifiers#update-a-notification
And the params are not notification
but notifier
curl -H "Authorization: Bearer $JWT" -H "Content-Type: application/json" 'https://api.scalingo.com//v1/apps/rss-john/collaborators' -X POST -d '{"collaborator": { "email": "[email protected]"}}' | jq
{
"collaborator": {
"id": "5d2c52cd623d3a000f6aad3a",
"email": "[email protected]",
"username": "n/a",
"status": "pending",
"invitation_link": "https://my.agora-fr1.scalingo.com/apps/collaboration?token=REDACTED",
"app_id": "59f72c73fb0de600123611df"
}
}
GET /scm_integrations/:id/search_repos?query=XXX
GET /scm_integrations/:id/search_pull_requests?query=XXX
GET /scm_integrations/:id/orgs
https://developers.scalingo.com/notifiers#data-sent-to-the-webhook-endpoint-non-slack
States "At the moment only deployment events are sent." which is wrong. There are a lot of events sent.
Moreover we should double check the content of the HTTP request.
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.