Metadata-Version: 2.1
Name: makeapi
Version: 1.0.5
Summary: A small pypi project, that allows you to make your own API.
Home-page: https://github.com/FrostiiWeeb/makeapi
Author: Alex Hutz
Author-email: frostiiweeb@gmail.com
License: MIT
Keywords: web
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# makeapi

[![Downloads](https://pepy.tech/badge/makeapi)](https://pepy.tech/project/makeapi)

A small package, that allows you to make an API.

## Example

```py
import makeapi

app = MakeAPI("localhost", 8000) # localhost is your local computer

@app.get("/main")
def main(request : makeapi.Request):
    return makeapi.PlainResponse("Hello!")
    
app.run()    

# Go to http://localhost:8000/main in your browser and you should see Hello!
```

## Example with POST request

```py
import makeapi

app = MakeAPI("localhost", 8000)

@app.post("/main")
def params_route(request : makeapi.Request):
    params = request.json
    return JsonResponse(params)    

app.run()

# Make post request and include json data to http://localhost:8000/main and it should show your json data
```

Enjoy!


