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...
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
I'm trying to achieve something similar to https://docs.bons.ai/examples.html#examples-overview
but what I'm getting is when section is selected in the menu it will go to the content of that section but not the title (beginning of a section) - title will be under the header.
Any tips on that?
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
There is a typo in "Securely transporting stuff: HTTPS explained":
So, https servers two main purpose
must be
So, https serves two main purpose
Repro
Here's my repro case:
https://jsfiddle.net/sethwieder/L46en8b2/40/
Expected
We're passing in an object as the input and expected it to denormalize nested objects based on the provided schema.
Actual
The output duplicate the same item for each index in the input array.
Context
This used to work in 3.2.3, but no longer works as of 3.2.4.
It's unclear to me if t
https://www.django-rest-framework.org/api-guide/schemas/
Specifically the block that describes how to override AutoSchema references an undefined method get_link():
from rest_framework.views import APIView
from rest_framework.schemas.openapi import AutoSchema
class CustomSchema(AutoSchema):
def get_link(...):
# Implement custom introspection her
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
Should mention CORS
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.
Regarding: https://github.com/microsoft/api-guidelines/blob/vNext/Guidelines.md
In section 14.4.4 Example Response "details" object doesn't fit the definition of "details" in section 7.10.2, table Error: Object. Details should be Error[]
{
"error": {
"code": "requestLimitExceeded",
"message": "The caller has made too many requests in the time period.",
"details": {
简介
通过 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 存在很大需要复用数据模型的需求。
最近找到一个工具,可以结合起来定义相关模型。
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
Feature Summary ✨
When a user presses the button to Create a study guide, study guide creation page should be shown to the user.
Why do we need this?
Essential feature as withou
TypeError: sync_message_in_groups() missing 2 required positional arguments: 'ms g' and 'groups'
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\
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!
I’m looking for a way to document a function which accepts a class or any class that extends it.
Since I know the base class has the fields I know I can accept any extended classes as they’ll also have those fields.
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.
Hi All
the library and the documentation are fantastic
I am a QA eng., and teach Python for my colleagues.
I saw in some examples that None is checked as it would be a boolean expression
for example:
https://fastapi.tiangolo.com/tutorial/body/
async def create_item(item_id: int, item: Item, q: str = None):
result = {"item_id": item_id, **item.dict()}
if q:
I saw that the
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
- Open the web3-provider-http-tests.ts
Steps for this issue
- Check for
anytypes in the tests and the defined types - Add a new type definition if required
- Cover th
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 80I'm submitting a ...
- bug report
- feature request
- question
I often write custom mutations via Postgres functions, and would like to return extra context and logging from the function that doesn't easily fit into the return type, which is most often a record or set of records from
-
Updated
Jan 31, 2020 - JavaScript
WDK documentation
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.
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, --verboseflag. - 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
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
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() {
rWhen 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
In
=syntax,")\)are escaped in
json.dumps:$ http -v httpbin.org/post \ dquote='\"' \ multi-line='line 1\nline 2'