A set of free, simple, logical more comprehensive interface

Development based on Python 3.6-Django 2.14, has been deployed to a simple server, based on Centos+ UWSgi +nginx

Domain name put on record more trouble, practice with, do not put on record, do not affect the use of completely.

Common free interfaces on the Internet are mostly GET requests, but generally do not support THE POST method, POST JSON data or Header parameters. This project mainly supplements these requirements and serves interested children.

An Android project, KtDevBox, uses all the interfaces in this, if you are interested, you can have a look

The main domain name

http://148.70.2.189/app/

Public Header

If required, it must be passed. Currently, there are two fields:

Userid and token

The interface list

  • User Information
  • Blog add delete change check
  • Blog likes related
  • Blog collection
  • Blog comments related
  • Others, rotation and so on

Status code

Corresponding to the code field in the return value JSON:

200 indicates that the request is successful and the correct JSON is obtained.

400 indicates a client error, which generally means incorrect method or incorrect parameter transmission

402 Incorrect operations generally refer to logical failures. For example, the operation of “like” is performed when there is no “like”.

403 Has no permissions, such as deleting non-own blogs;

404 No resource found

500 Server logic processing error (if occur, need to issue);

Return format example

{" code ": 200," MSG ":" success "" data" : "the main data () may not have the field"}Copy the code

Feel good, please Star in the upper right corner

License

Copyright 2019 CysionLiu

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/licenses/LI…

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.