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

httpie
nhooey
nhooey commented Mar 6, 2020

It's not clear from the website's documentation, or the --help output, how to do the following equivalent curl task:

Post a raw JSON query to ElasticSearch:

curl \
    --header "Content-Type: application/json" \
    --request POST \
    --data '{ "_source": [ "restricted_countries.*" ], "query": { "match_all": {} }, "size": 1000 }' \
    'http://localhost:9200/_search'

T

taotao54321
taotao54321 commented Apr 23, 2020

When I set boolean options using let, they accept v:true but not v:false.
Nvim says E521: Number required: &ignorecase = 'false'.

  • nvim --version: NVIM v0.5.0-456-gdeb4566ca
  • vim -u DEFAULTS (version: ) behaves differently? NO
  • Operating system/version: Debian testing, linux-image-5.5.0-1-amd64
  • Terminal name/version: alacritty 0.4.2
  • $TERM: screen-256color

Steps

atlc
atlc commented Aug 6, 2019

Operating system: ALL
Last upstream commit: de496848c1e7b7116371ae25944aced1c22c47a9
Browser version(s): Chrome 75.0.3
Ruby version (run ruby -v): 2.5.1p57


In our use case, we added more deeply nested levels. This caused an issue where the ToC library would grab the HTML tags surrounding the current level and add those into the document.title, giving us such titles in our browser

amrsalama
amrsalama commented Apr 24, 2020

Describe the bug
Find-one endpoint /resource/:id responses with 500 status code instead of 404, this happens with MongoDB setup.

Steps to reproduce the behavior

  1. Setup Strapi with MongoDB configuration.
  2. Create a collection (resource).
  3. Give findOne access to the public.
  4. Send a request to /resource-name/any-invalid-id.

Expected behavior
404 response.

**Sys

rpkilby
rpkilby commented Jun 19, 2019

Jumping to a subsection via the sidenav will sometimes cause the page header to overlap the anchor point. When navigation is working correctly, there's a perceptible flicker/jump, so I'm guessing javascript is being used to calculate the offsets. Looking at mkdocs's docs, this isn't an issue. I'm wondering if this is something that will be fixed by upgrading mkdocs (#6623), or if it's a theme issu

zhaofangcheng
zhaofangcheng commented Apr 30, 2020

版本号

1.8.5

什么问题

node server/install.js
Error: (node:28710) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

经查询mongoos官网说明,在5.7版本中使用了较高版本的MongoDB driver3.3.x,其中useUnifiedTopology为过期的方法,

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

fastapi
ccxt
xmatthias
xmatthias commented Feb 14, 2020

While ccxt does a great job unifying most functions / settings, not everything is or can be unified.
I think it would be good to provide a separate wiki/documentation page which documents exchange-specific properties.

The behavior is there now and all is working well - but to find it users need to search through issues (which are not easy to navigate) to find certain exchange-specifics - and o

snaker00
snaker00 commented Dec 11, 2018

from wxpy import *
bot = Bot(cache_path=True) # 保持登陆状态
@bot.register()
def reply_friend(msg):
print('接收:' + str(msg)) #打印接收到的消息
msg.reply("hello world") #回复消息
msg.reply_image('12.png') #回复图片
msg.reply_file(‘12.png') #回复文件
msg.reply_file('1.txt') #回复文件
embed()
以上是一个例,期望运行结果是不管谁发送过来的消息都直接回复,但是第六行可以发送消息成功,第七行可以发送图片成功,第八行把图片已文件的形式发送也可以成功,但是第九行文件就是发送不了,发送1.zip也是发送不了

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!

wazybr
wazybr commented May 4, 2020

When generating documentation for a class that extends another, and the base class has it's constructor documented, JSDoc generates duplicated documentation pages for the class that is being extended.

Input code

I was able to reproduce the bug on a minimal example project containing 2 files:

classes/Foo/index.js

/**
 * Represents foo.
 */
export class Foo { 
    /**
   
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.

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
rajsite
rajsite commented Feb 11, 2020

I'm upgrading a build environment from python 2 to python 3 and noticed that endpoints with seeded random numbers are not returning the same values. It seems to be related to usage of randint:
https://github.com/postmanlabs/httpbin/blob/f8ec666b4d1b654e4ff6aedd356f510dcac09f83/httpbin/core.py#L1448

It seems like randint is not seed safe and it looks like only random() is: https://bugs.python.o

lihengming
lihengming commented Jul 3, 2017

有很多开发者朋友问我有没有类似的前台项目、后台管理项目的种子项目,其实都是类似的,区别在于这些项目需要模版引擎(不建议使用JSP)和静态资源(css、js、img)的支持,稍微调整下即可适用,按照MVC的分层来说的话差异的只是视图层,下面是基于Thymleaf模板引擎的改造步骤,供参考。

  1. 加入Thymleaf模板引擎依赖
<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-thyme
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
Wikipedia
Wikipedia
You can’t perform that action at this time.