Skip to content

api-commons/json-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

JSON:API

This is an API Commons working repository for developing reusable JSON:API components that can be used as part of API development.

Currently, there are three key artifacts in this repository:

  • JSON Schema (JSON) - A complete JSON Schema, sourced from a Columbia University repository, covering the success, errors, and info aspects of JSON:API.
  • JSON Schema (YAML) - A YAML derivative of the master JSON Schema that covers only the success portion of JSON:API, and applying meta, data, and pagination to APIs.
  • OpenAPI (YAML) - A seed of an OpenAPI that takes the JSON Schema (YAML) and begins using it to validate different API responses covering basic meta, data, and pagination examples.

I will be doing more work on this suite of JSON:API components. My goal was to standardize the API responses for APIs.io and API Evangelist API, but then also contribute something to the API Commons that others can use. There is a lot of work still to be done, but the work here should be useful enough to jump start a variety of use cases.

If you have any questions or needs feel free to submit an issue or email kin@apievangelist.com.

Part of API Commons

A machine-readable building block from API Commons — open specifications and schemas for the APIs you produce and consume. See all building blocks and tools at apicommons.org and the tools at apicommons.org/tools.

Related building blocks

  • problem-details-for-http-apis — the RFC 9457/7807 error format to pair with JSON:API responses
  • examples — shared request/response examples for API operations
  • train-travel — an APIs.json + OpenAPI template to validate response shapes against
  • vocabulary — shared words and definitions for API operations

About

JSON:API artifacts for the API Commons — schemas and governance for the JSON:API standard.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors