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,194 public repositories matching this topic...

resolritter
resolritter commented Nov 23, 2019
  • nvim --version:
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -
daffodil11
daffodil11 commented Nov 21, 2019

Problem

When following the instructions in the README in the redux example project, a crash occurs.

Input

Here's how I'm using normalizr:
clone this repo
run yarn in the root dir
run yarn in the examples/redux dir
run yarn start

Output

Here's what I expect to see when I run the above:
An inquirer prompt.

Here's what I actually see when I run the above:

> no
postwoman
terranblake
terranblake commented Oct 9, 2019

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
I would like the ability to import/export an environment, with a specified environment name (at time of upload), to enable the ability to share environments.

**Describe alternatives you've consid

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 
learn-anything
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
pawamoy
pawamoy commented Dec 4, 2019

Is your feature request related to a problem

A docs problem, yes 😛

I want to use HTTPS for my API. The docs suggest to use a Docker Swarm with Traefik and Let's Encrypt. I can't (it's for work). We use a Kubernetes cluster and our own SSL certificates. Then there is a link to the FastAPI project generator, but there are a lot of files in there. I'm not sure to even understand which of

web3.js
nivida
nivida commented Jan 24, 2020

Expected behavior

The path defined for example in the tsconfig file of the web3-providers-http package is misleading and should get corrected if possible in a non-breaking manner.

Actual behavior

The defined path is web3-providers instead of web3-providers-http.

Steps to reproduce the behavior

  1. Open a tsconfig file from one of the provider packag
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.

davidmc24
davidmc24 commented Oct 17, 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

TLDR: in the javaGradle support in runtimes.go, both the build and clean hooks should check for the availability of the gradle wrapper.

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.