滚蛋即服务 (Foaas)
Fuck Off as a Service (Foaas)

原始链接: https://foaas.io/

FOAAS(Fuck Off As A Service)是一个 RESTful API,旨在为告诉他人“滚蛋”提供一种可扩展的现代解决方案。 该服务支持内容协商,允许用户以纯文本、JSON、XML 或格式化的 HTML 格式接收响应。它提供多种操作和可自定义的输出过滤器,例如国际化(i18n),可通过外部服务将消息翻译成不同语言。 主要功能包括: * **操作:** 用于获取版本信息或可用消息格式列表的端点。 * **过滤器:** 可选的修饰符(如语言翻译),可在请求中组合使用。 * **路线图:** 计划中的更新包括“随机”或“每日滚蛋”功能。 该项目由 doomcrewinc 维护,最初由 @TomDionysus 创建。这是一个开源项目,欢迎通过 GitHub 贡献代码。

Hacker News 新闻 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Fuck Off as a Service (Foaas) (foaas.io) 23 点,speckx 发布于 45 分钟前 | 隐藏 | 过往 | 收藏 | 3 条评论 帮助 jwilk 10 分钟前 | 下一条 [–] 2013 年曾讨论过:https://news.ycombinator.com/item?id=6069353 (105 条评论) 可惜原域名被篡改了。 回复 joss82 22 分钟前 | 上一条 | 下一条 [–] 我真的很喜欢这种极简风格。非常好,直击要点。 https://foaas.io/legend/foass.io/joss82 回复 TheJoeMan 22 分钟前 | 上一条 [–] https://foaas.io/dalton/foaas/HN 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Introduction

FOAAS (Fuck Off As A Service) provides a modern, RESTful, scalable solution to the common problem of telling people to fuck off.

API

Content Negotiation

FOAAS will respond to the following 'Accept:' values with appropriate content

  • text/plain - Content will be returned as a plain string.
  • application/json - Content will be returned as a JSON object { message: 'message', subtitle: 'subtitle' }
    • Supports jsonp by including ?callback=?
  • text/html - Content will be returned as an HTML page with a twitter bootstrap hero unit, containing the message and the subtitle.
  • application/xml - Content will be returned as an XML document.

Operations

Path Description
/version Will return content with the current FOAAS version number.
/operations Will return a JSON list of operations with names and fields. Note: JSON Only

Filters

Filters are optional output modifiers, and are specified by adding the filter name as query to the HTTP request, e.g. https://foaas.io/off/doomcrewinc/Everyone.

Caveat: All filters internally call the stated external services, and as such the latency and availability of API calls using these features cannot be guaranteed.

Name Description
i18n Translation provided by mymemory.translated.net. Specifying ?i18n on its own will attempt to detect your browser language, or you can specify the language to translate to using the ISO 639-1 language code, i.e. ?i18n=es

Filters can be used in combinations, e.g. https://foaas.io/off/doomcrewinc/Everyone?&i18n=de

Roadmap

FOAAS will be extended to include the following functionality:

  • Random fuck offs (or Fuck Off of the Day), without having to specify the operation (off, you, everyone, donut etc) explicitly

All contributions are very welcome.

Fork me on github

Created by @TomDionysus

Maintained with loving Profanity by doomcrewinc

联系我们 contact @ memedata.com