Skip to content
#

API

An API can be thought of as an instruction manual for communication between multiple software apparatuses. For example, an API may be used for database communication between web applications. By extracting the implementation and relinquishing data into objects, an API simplifies programming.

Here are 27,272 public repositories matching this topic...

puremourning
puremourning commented Jan 28, 2020
  • nvim --version:
(nvim3) BenMBP:~ ben$ nvim --version
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla
hkovacs
hkovacs commented Jan 8, 2020

Describe the bug
following the migration guide https://strapi.io/documentation/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.html

the command for renaming collection doesnt work for my version of mongodb
db.collection.renameCollection('groups_my_group', 'components_my_component');
also, according to new category usage i think this is more correct?
`db.collection.rena

postwoman
debjeetsarkar
debjeetsarkar commented Nov 26, 2019

Is your feature request related to a problem? Please describe.
There is no comprehensive tooling while working with MQTT brokers.

Describe the solution you'd like
A simple interface to connect to an MQTT broker.
Subscribe to topics
Publish to topics

Describe alternatives you've considered
MQTT Lens

yippibrian
yippibrian commented May 21, 2019

It looks like most of the advice from the OWASP REST Cheat Sheet is discussed in this API-Security-Checklist, but OWASP talks about the importance of CORS, which is not mentioned at all in this API-Security-Checklist. Probably good to make mention. Also, the OWASP REST Cheat Sheet provides a bit more guidance regarding validation that might be good to incorporate.

https://github.com/OWASP/Che

ghostbody
ghostbody commented Aug 20, 2019

简介

通过 yapi 定义出接口其实是一件很 challenge 和重复的事情。

一般的我们的基于“资源”概念的 restful 接口会对某个数据模型(model)实现 CRUD 接口 (增删改查)。

假设我们一个基本的管理用户的需求。

  • 获取用户列表 GET /api/v1/users?_num=10&_page=1
  • 获取某个用户 GET /api/v1/users/:id
  • 新增一个用户 POST /api/v1/users
  • 删除某个用户 DELETE /api/v1/users/:id
  • 更新某个用户 PUT /api/v1/users/:id

对于 yapi,意味着我们需要至少定义 5个接口,这些接口的 request 和 response 存在很大需要复用数据模型的需求。

最近找到一个工具,可以结合起来定义相关模型。

ccxt
hivemall
hivemall commented Sep 24, 2019

your manual pagination by since is broken, tested with bittrex since it will fetch the latest trade over and over again not breaking, thus this is better example:

    def paginate_history(self, ex) -> List:
       tradess = []
        since = ex.milliseconds() - 1000*60*60*24*14 # 1d *x
        while True:
            trades = ex.fetch_my_trades(None, since, limit=5)
            if 
xgocn
xgocn commented Sep 18, 2017

Login successfully as 落潮拾贝
Traceback (most recent call last):
File "setup.py", line 54, in
'Topic :: Utilities',
File "d:\Anaconda3\envs\test_py3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "d:\Anaconda3\envs\test_py3\lib\distutils\dist.py", line 955, in run_comm
ands
self.run_command(cmd)
File "d:\Anaconda3\envs\test_py3\lib\distutils\

WowItsDoge
WowItsDoge commented Feb 22, 2019

Is there an overview, how the config object for the constructors of the neural network are defined?

This would be interesting:

  • Has brain.NeuralNetwork and brain.recurrent.RNN the same config attributes?
  • What is the description of the inputSize attribute?

Thank you for the great work with this library, it is realy amazing!

Timunas
Timunas commented Sep 10, 2019

Custom error formatter must have now 5 arguments instead of the old 4. These changes were introduced here on #1652

When migrating from 0.19 to 1.1.0 I had issues on a custom error formatter because the original_exception argument was introduced but that change was not documented on the upgrading guide.

fastapi
web3.js
nivida
nivida commented Jan 24, 2020

Expected behavior

All types are strongly asserted in the dtslint type tests.

Actual behavior

In some TS type test cases, we still have any types.

Steps to see this behavior

  1. Open the web3-provider-http-tests.ts

Steps for this issue

  1. Check for any types in the tests and the defined types
  2. Add a new type definition if required
  3. Cover th
incfly
incfly commented Dec 27, 2019

For the testing involving multiple ports, this is very needed. In our case (Istio), we use httpbin a lot, but we also have different behavior of our software based on the port level configuration. It'll be nice to have a command line level arguments to specify the ports the program is serving on.

./httpbin --ports '8080,9090,80' # default to 80
YPS233
YPS233 commented Nov 29, 2019

I want to use zeal to query windows driver documents, but after I download the c and c++ documents,i can not found wdk function . for example the function NtCreateFile or ZwCreateFile. I can found it from microsoft document (https://docs.microsoft.com/zh-cn/search/?search=zwcreatefile&category=All). Did I not find it or it is not exist in zeal ?

the funtion information: https://docs.microsoft.

edlefebvre
edlefebvre commented Dec 10, 2019

Prerequisites

  • I am running the latest version. (up upgrade)
  • I searched to see if the issue already exists.
  • I inspected the verbose debug output with the -v, --verbose flag.
  • Are you an Up Pro subscriber?

Description

It would be great to add regex capabilities to redirects like so:

redirects: {
  "/folder/:slug(regexhere)": {
    "location": "https
kgriffs
kgriffs commented Jan 14, 2020

Currently, we ask contributors to strive for consistency with existing code, but it would be helpful to clarify the following regarding docstrings:

  • Docstrings should begin with a short (~70 characters or less) summary line that ends in a period.
  • The summary line should begin immediately after the opening quotes (do not add a line break before the summary line)
  • The summary line should de
Dirbaio
Dirbaio commented Sep 30, 2019

The Go documentation states the following on http.Request.RemoteAddr:

The HTTP server in this package sets RemoteAddr to an "IP:port" address before invoking a handler.

Therefore, you could expect that a code like this is correct:

package main

import (
	"fmt"
	"net"
	"net/http"

	"github.com/go-chi/chi"
	"github.com/go-chi/chi/middleware"
)

func main() {
	r
jdelman
jdelman commented Jul 17, 2019

When rotating between landscape/portrait, you can lose your open document and position. I have encountered this issue on an iPhone XS Max running iOS 12.3.1.

Steps to recreate:

  • Search for something.
  • View an article.
  • Rotate into landscape mode (on my iPhone XS Max, this shows the search view and the document view side-by-side)
  • Rotate back to portrait

Expected behavior: Show

Wikipedia
Wikipedia
You can’t perform that action at this time.