Skip to content

Latest commit

 

History

History

UserAPI

WSO2 API Manager Project

Project structure

├── api_params.yaml
├── Docs
│   └── FileContents
├── Image
├── Meta-information
│   ├── api.json
│   └── swagger.json
├── README.md
└── Sequences
    ├── fault-sequence
    ├── in-sequence
    └── out-sequence

Deploy a minimal API

To deploy a minimal API once project generated open Meta-information/api.yaml and edit

  • apiName : Must not include spaces (i.e. MyAPI)
  • version : A simple version string (i.e. v1.0.0)
  • context : Context of API (i.e. /MyAPI)

Meta-information/swagger.yaml contains a default swagger generated by tool. Replace Meta-information/swagger.yaml with your swagger file (JSON also supported).

Edit api_params.yaml and add your endpoint specific URLs there.

import api as usual with apictl import-api [directory path]

Publishing API Project

Change status field in api.yaml from CREATED to PUBLISHED and import it