need to create spec if already have backend service?

madhu-2
Participant II

Hi, if we already have backend service api(which contains get,post routes..)is there need to create spec or directly create api proxy? if we need to specify the verb for api proxy created for backend service we can specify verb or we should do only in spec?

we can import api proxy to spec and should specify verb there or no need?

1 3 100
3 REPLIES 3

Good question! You can:

  • Create an API Proxy based on a specification
  • (Using a tool) generate a specification from an already-existing API Proxy
  • Create an API Proxy, and then independently and manually create a specification
  • Create an API Proxy manually and "skip" creating a specification
  • Create a specification manually and "skip" creating an API Proxy.

In other words, the specification and the proxy are independent.

The reason you might want a spec, even if you already have an API Proxy, is to provide auto-generated documentation, or to inform a testing tool, or other static analysis.

Thank you.

could you let me know tool means apigeetool - npm or different.