2

For example, facebook and google have a lot of APIs, like getting data and doing actions on behalf of a user (backup files to Google Drive).

I can read all of their documentation but I usually like to keep it very technical. Documentation has a lot of unnecessary text :(

Is there a standard for querying a site's (server's) APIs?

I'd like to do something like https://google.com/apis (or https://facebook.com/apis), get a list of APIs and start invoking them. Is there such a standard? Who's in the industry implements it? Thanks.

asked Apr 18, 2017 at 12:16
2
  • 1
    Can you update your question and define what you mean by "standard" and add what goal you want to meet? if you are interested in finding apis on the internet there is a service discovery protocol (SDP) Commented Apr 18, 2017 at 14:30
  • json-schema.org Commented Sep 15, 2018 at 0:05

2 Answers 2

8

There is Swagger. Its not a standard but it allows you to define simething very similar for your own APIs. You users can request /swagger.json and get a machine-readable definition of your API.

answered Apr 18, 2017 at 12:29
4

As @marstato pointed out: There is Swagger, which is at the moment something like a defacto standard for describing "restful" APIs. Swagger is so successfull, that there is now an OpenAPI Initiative which has some well known members, who are working on it.

Other players/solutions in this field are RAML, Apiary, APIBlueprint.

Then there are solutions like Django Restframework which have their own ideas.

Overall, there is bit movement in the market, though the idea is not new.

A good place to go is integrating the Swagger UI npm package in your project. It comes with an interactive Editor component which is a good starting point. This video shows you how to integrate it in your project. Zalando -yes the fashion company- has a nice guideline for REST-APIs. And if you are on the Python side of things, they have a really great Framework called connexion.

answered Apr 18, 2017 at 13:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.