kfang / easydocs

Easier API Documentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##Currently Under Maintenance Please see the github issues for things that need to happen.

  • upgrade to using scala.js for the frontend
  • upgrade to using akka-http form spray.io
  • use upickle instead of spray-json

##Http Endpoints ###Sites

  • GET /api/sites
  • POST /api/sites
    • ex: {"name":"my-site-name"}
  • GET /api/sites/:id

###Site Topics

  • **GET /api/sites/:id/topics

###Endpoint

  • GET /api/endpoints/:id
  • POST /api/endpoints
    • authentication is optional
    • parameters is optional
    {
        "site":"my-site-id",
        "topic":"route-topic",
        "subTopic":"route-subtopic",
        "notes":"stuff to know about the route (supports markdown)",
        "route":"/the/api/route",
        "method":"GET",
        "contentType":"application/json",
        "authentication":"required",
        "parameters":"stuff about the request params or body (supports markdown)"
    }
  • PUT /api/endpoints/:id
    • its the same as creating a promotion except you can't change site
  • DELETE /api/endpoints/:id

About

Easier API Documentation


Languages

Language:Scala 70.6%Language:JavaScript 16.8%Language:HTML 12.6%