Skip to content
#

rest

A representational state transfer (REST) API is a way to provide compatibility between computer systems on the Internet. The concept was first outlined in a dissertation by Roy Fielding in 2000.

Here are 682 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

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

fastapi
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
sphet
sphet commented Apr 22, 2020

I want to get the updated document from Python Eve via the on_updated callbacks. All I can get right now are the updates and the original. I can update the original myself, but I see from the source code that is done right after the callback.

It would be good if the callback would provide the updated version as well.

Please provide a way to get the UPDATED document since we are using this

Mobile-Security-Framework-MobSF

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis.

  • Updated May 26, 2020
  • Python
mivade
mivade commented Apr 26, 2019

Following the instructions here I'm trying to create an endpoint in a Tornado app that shows the API documentation. I'm setting up a static file handler similar to this:

from pathlib import Path

import apistar
from tornado.web import StaticFileHandler

# ...

apistar_static_path = Path(apistar.__file__).par
sambenas
sambenas commented Jul 16, 2019

If using a custom authentication token model, the related_name cannot be auth_token or that will clash with the default token model related name and the django project will fail to start.

The RegisterView returns an authentication token using user.auth_token. Since the related name for a custom token model had to be changed, user.auth_token does not actually exist.

As a workaround a

gdmoore
gdmoore commented Apr 8, 2020

Python 3.8, using Autobahn|Py 20.3.1, and Crossbar from crossbario/crossbar:pypy3-20.2.1

What I'm trying to do is have a pool of workers handling an endpoint with shared registration (roundrobin), and after a set number of invocations, a worker will unregister itself and exit so that a fresh process can take its' place.

Steps:

  • create two processes; each connects to Crossbar and registers
phr34k
phr34k commented Mar 28, 2020

I'm new to rest_framework but I'm using drf in combination with redoc and this library and it seems to work fantastic.

I was wondering how can I generate custom sections of the documentation for objects that are commonly reused across all API calls. For example, I have a token object that is query/post parameter so I would like this to be explained topic in its own section.

With the help of

gbinal
gbinal commented Mar 18, 2016

Thanks for making such great code. I've got an instance running and am trying to document the ways that I can query the API.

So far, I've found:

  • ?page=2
  • ?[columnheader]=[value]
  • ?[columnheader1]=[value1]&[columnheader3]=[value4] (returns results that have both value1 and value2)
  • ?[columnheader1]=[value1]&[columnheader1]=[value2] (returns results that have value1 OR value2)

I'

tedivm
tedivm commented Sep 30, 2019

I love this library and use it for several different projects. There have been a few times where I've had to open issues, and the team working on this has always been great.

That being said I'd love to help more, possibly by opening PRs rather than issues. The place I get stuck at those is navigating the internals of the pr

TheHiveDocs
Wikipedia
Wikipedia

Related Topics

api graphql-api
You can’t perform that action at this time.