Skip to content

Scryfall API clients in multiple languages.

License

Notifications You must be signed in to change notification settings

sweallar/scryfallapi

 
 

Repository files navigation

Scryfall API Clients

OpenAPI (Swagger) definition for Scryfall, a Magic: The Gathering search engine.

Pre-generated clients

You may add these clients as submodules to your own code.

Generating Clients

To generate your own clients

  1. Install AutoRest via npm (npm install -g autorest)
  2. Run:
autorest README.md

You may also run AutoRest in Docker by running:

docker run --rm -w /var/autorest -v ${PWD}:/var/autorest azuresdk/autorest

Configuration

The following are the settings for this using this API with AutoRest

see https://aka.ms/autorest

input-file: swagger.yaml
namespace: scryfall

csharp:
  namespace: Scryfall.API
  output-folder: CSharp
go:
  output-folder: Go
java:
  namespace: com.scryfall.api
  output-folder: Java
nodejs:
  output-folder: NodeJS
typescript:
  output-folder: TypeScript
python:
  output-folder: Python
ruby:
  output-folder: Ruby
php:
  output-folder: PHP
  
directive:
- from: swagger-document
  where: $.info.title
  set: ScryfallClient
  reason: Set friendly client class names.    

About

Scryfall API clients in multiple languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%