REST and other APIs

REST

The URLs for the various entities (disciplines, facets, concepts) provide a REST API with a JSON response format. Full documentation, a schema, and interactive client via Swaggerhub available here: PhySH REST API

Examples

Simple examples using curl are below.

Get all disciplines:

$ curl -H 'Accept: application/json' https://physh.org/disciplines


Get basic information about a single concept:

$ curl -H 'Accept: application/json' https://physh.org/concepts/a38dc01732364084afc5eb59c5de51e0


Get basic concept information along with related concepts and the facets and disciplines that the concept belongs to:

$ curl -H 'Accept: application/json' https://physh.org/concepts/a38dc01732364084afc5eb59c5de51e0\?include\=related,facets,disciplines


Get all concepts belonging to the “Atomic, Molecular & Optical” (ID: “8ab3d2b7-b50b-460e-b086-8990cfcbd350”) discipline:

$ curl -H 'Accept: application/json' https://physh.org/concepts\?discipline\=8ab3d2b7-b50b-460e-b086-8990cfcbd350