Skip to content

theogravity/immutable-x-openapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

immutable-x-openapi

This contains an unofficial OpenAPI 3.0 definitions for

The definitions were created using Stoplight Studio.

You can use the definition to generate your own SDK, or import into your favorite API client such as Insomnia and Postman.

Using a ready-made SDK

You can find documentation here that has been generated using the definitions. Select the language option on the right side for your client. There is a vanilla Javascript option if you click on the vertical three dots next to the languages, which will show you how to call the API in vanilla JS.

https://imx.readme.io/reference/listcards

Building an SDK

Typescript (via node.js)

Use the openapi-typescript-codegen package to build an SDK complete with Typescript definitions.

If you copy the appropriate reference/*.yaml file to your project and install openapi-typescript-codegen, you can generate the SDK using a script command in your package.json:

{
  "scripts": {
    "gu-client:build": "openapi --input GodsUnchained-API-OpenAPI3.yaml --useOptions --output ./src/gu-api-client"
  }
}

Notes

These definitions were crafted by hand using the available documentation.

Although a best effort was made to ensure accuracy in results, there may be mistakes in the definition. If you find such a mistake, please open a pull request with the necessary changes.

For many endpoints, model definitions have been created for responses, which a code generator can use to create corresponding classes, or typed interfaces if using a Typescript generator.

Undocumented APIs

Immutable X

The following endpoints were unable to be documented at the time due to unavailability of the documentation:

Contributing

  • Fork this repo
  • Use Stoplight Studio to open the repo directory, and make your edits
  • Make sure the linter in Stoplight Studio has no errors/warnings
  • Make a pull request with your changes

Disclaimer

The API definitions depend on the community to keep up-to-date, or until the Immutable team provides an official definition. Use at your own risk, not responsible for losses incurred from an incorrect API definition.

Releases

No releases published

Packages

No packages published