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

nezzard
nezzard commented Feb 21, 2020

Hi, it would be very good if it were possible to delete previously uploaded files through GraphQL.

Now we are developing an online store, when adding goods, the manager can upload thumbnails to the goods, I need to give the opportunity to delete previously uploaded thumbnails through GraphQL.

Everything is built on Apollo nuxt, I would not want to use it to remove axios thumbnails.

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
ilomon10
ilomon10 commented Feb 27, 2020

Is your feature request related to a problem? Please describe.
I need to test my socketio server when install postwoman i dont know how to config connection to server.
I ever test with ws://localhost:3001 or wss://localhost:3001

Describe the solution you'd like
Maybe you can add option socketio client with minimal config.

Additional context
![image](https://user-images.gi

habeeb555-q
habeeb555-q commented Jan 10, 2020
Request Method: GET
http://127.0.0.1:8000/api/
3.0.2
AssertionError
Using OpenAPIRenderer, but pyyaml is not installed.
/home/admin/DEV/PYTHON/Frameworks/django/HighEndSalesEnv/lib/python3.7/site-packages/rest_framework/renderers.py in init, line 1053
/home/admin/DEV/PYTHON/Frameworks/django/HighEndSalesEnv/bin/python
3.7.5
['/home/admin/DEV/PYTHON/Frameworks/django/HighE
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
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

AresEkb
AresEkb commented Jan 19, 2020

Here is a trivial source code organization pattern used in a number of projects:

  1. Code is organized using ES6 classes
  2. Each class is defined in a separate file. The file exports the class
  3. A single module (index.js) re-exports the classes

I can't generate a correct documentation for this sample.

Input code

Here is a base class in point.js:

/**
 * Class representi
fastapi
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
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.