Giter Site home page Giter Site logo

api-docs's Introduction

Algorithmia API Documentation

This repository houses the documentation for Algorithmia's API.

Getting Started

Local Development

The Easy Way

docker run --rm --name slate -p 4567:4567 -v $(pwd)/source:/srv/slate/source slatedocs/slate:v2.8.0 serve

The Manual Way

First, ensure you have Ruby 2.7.2 installed on your system. Then, with the repository as your active working directory, run the following to install necessary packages:

bundle install

If Ruby is already installed, but the bundle install command doesn't work, just run gem install bundler and try the above command once more.

Then run the following to fire up a development server:

bundle exec middleman server

And voila! Your development server is available at localhost:4567, and will automatically update with any changes you make.

Building for Production

The Easy Way

docker run --rm --name slate -v $(pwd)/build:/srv/slate/build -v $(pwd)/source:/srv/slate/source slatedocs/slate:v2.8.0

The Manual Way

To build the static assets for this documentation, simply run:

bundle exec middleman build --clean

A build directory will be created that contains all of the production-ready static assets for this documentation.

Contributing

Want to add documentation for a new API resource or endpoint? Huzzah! Follow this checklist to ensure you add all of the necessary information.

If you're adding a new resource

  • First, create a new file in source/includes specifically for your resource. Title it _${resource_name}, e.g. _users.md, _organization_members.md, etc...
  • Add the name of this file to the includes section at the top of index.html.md file. Alphabetical ordering please!
  • Within your new file, add a section to the top that fully describes the resource and the properties it might possess. For an example, take a look at the _algorithms.md file: it possesses a section titled "The algorithm object" which describes every property an algorithm object might possess.
  • For each property, provide the name of the property (for nested properties use dot notation, e.g. obj1.property), the data type, and a description of the property.
  • For each endpoint that can be used to modify a resource type, follow the instructions below on how to add an endpoint.

If you're adding a new endpoint for a resource

  • Find the file in source/includes for the resource you wish to add an endpoint for. If one doesn't exist, take a look at the section above on adding a new resource.
  • Endpoints are ordered by CRUD: create, read, update, then delete. If your endpoint doesn't fit one of those categories, use your best judgement to determine where it should fit within the file, and try to observe conventions used in other resource files.
  • Add the following to your description of the new endpoint:
    • Examples for cURL and Python.
    • The REST API endpoint backing the endpoint, e.g. PUT /algorithms/:username/:algoname.
    • A description of any and all inputs, such as path and query parameters and the structure a request body should take (if one is required).
    • A description of what will be returned upon success or failure, and an example for the success case.

When in doubt, take a look at how other endpoints have been documented, and leverage existing conventions. If you need to alert a user to sharp edge, or simply point out a nuance, leverage an aside element (check out the examples in the Slate demo).

api-docs's People

Contributors

anowell avatar bootstraponline avatar chrissrogers avatar cvkef avatar dependabot[bot] avatar dmorris-algo avatar edblankenship avatar eliperelman avatar floorlamp avatar jamesatha avatar kennydaniel avatar kevin-buttercoin avatar langlk avatar lemonez avatar lord avatar maks3w avatar moizjv avatar niksamokhvalov avatar pbechu avatar peckjon avatar platypii avatar pmcq avatar realityking avatar rezanachmad avatar rlord avatar sobstel avatar styloa avatar swarzech avatar tzhukov-algo avatar victorquinn avatar

Stargazers

 avatar  avatar

Watchers

 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

api-docs's Issues

Algo Not Working with other Pictures

Hi,

I am using this algo "algo://sfw/NudityDetection/1.1.4" to find the Nudity in Pictures. It is working perfectly on the link you have given in sample.

Working on This:
http://www.isitnude.com.s3-website-us-east-1.amazonaws.com/assets/images/sample/young-man-by-the-sea.jpg
https://i.imgur.com/ajilbGq.jpg

But it is not working on my link.
Not Working on This:
https://parsefiles.back4app.com/vkimhy00uIlwZPs0pOiAy50a8yw83iWiWuDTZPu4/227235ff4803c54b1b772e6c237bfc82_IMG_20171212_164856_720.jpg

Update:

It is working on every other link, but not working on the above one only.

Waiting for your reply.

Thanks,
Rashid

cli missing code samples

When you visit http://docs.algorithmia.com/?cli there are a few code sections that are blank:
Updating a directory:
Checking if a file exists:

Not sure if we can remove those sections, update the CLI so it can handle these cases, or just document that it's not supported right now

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.