Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 1.54 KB

README.md

File metadata and controls

70 lines (54 loc) · 1.54 KB

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.