Git Product home page Git Product logo

apidoco's People

Contributors

abygeorge avatar alameenkhader avatar alfie-max avatar dependabot[bot] avatar hafnas avatar joicemj08 avatar nidhinsg avatar stlewis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apidoco's Issues

Test Coverage

  • Set Up Rspec
  • Cover Generators
  • Feature Tests
  • Unit Tests

Sprockets::FileNotFound in Apidoco::Apis#show

couldn't find file 'angular/1.8.0/angular' with type 'application/javascript'

// about supported directives.
//
//= require angular/1.8.0/angular < ------- error
//
//= require apidoco/jquery.min
//= require apidoco/jquery.json-viewer

Specifying the "direction" of the parameter.

I'd like to specify in the parameters for a request, or for a response to a request.

for example, to inform that the parameter is optional or to describe it.

In examples of requests, the essence of one or another parameter (in response to a request) may not always be clear.

Documentation Version Parser

This is the milestone issue which focuses on building the following

  • Rails generator to create the sample API documentation files and folders
  • Classes to parse these version-ed documents

Directory structure for documentation

docs
---api
------v1
---------posts
------------create.json
------------list.json
------------show.json
------------update.json
------------delete.json
---------comments
------------create.json
------------delete.json
------v2
---------posts
------------create.json
------------list.json
------------show.json
------------update.json
------------delete.json
---------comments
------------create.json
------------delete.json

Classes

  • Apidoco::Documentation - parsers all the files of the specified documentation folder(ex:- v1)
  • ApiDoco::VersionParser - keeps track of all the Documentations(ex:- should have an array of all the Apidoco::Documentation versions)

Tasks

[Question] Does this gem works on "api-only" mode?

I tried using the gem in and old project that uses the api only mode in rails but when I access the /docs route it shows just the HTML with angular tags. So... Does the gem work with this type of API?

image
It shows like this in my localhost

The project configs are:

  • ruby: 2.4.9
  • Rails: 4.2.3

Thanks for the attention!

Response Headers in Example

It looks like example can't include response headers
Is there a way to document the response headers?
There should be as for api auth responses.. i'm using devise_token_auth and they give the token info in the response headers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.