Create tags for application.
About the project • Technologies • Getting started • How to contribute
This is an api designed in Python (using Flask) for creating tags. The api was built during NLW Expert, an event hosted by Rocketseat for those who want to learn new things and enter the technology market. In addition to building the API, architectural patterns, error handling, etc. were shown to make the application scalable and robust.
Technologies that I used to develop this api
Clone the project and access the folder
$ git clone https://github.com/matheralvs/nlw-expert-python.git && cd nlw-expert-python
Follow the steps below
# Enter the virtual environment (.env)
$ .venv/Scripts/activate
# To finish, run
$ py run.py
# Well done, project is started!
POST /create_tag/
curl -i -H 'Accept: application/json' -d 'product_code=123' http://localhost:3000/create_tag
HTTP/1.1 201 Created
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 201 Created
Connection: close
Content-Type: application/json
Location: /create_tag
Content-Length: 36
{
data: {
"type": "Tag Image",
"count": 1,
"path": "{path from image}.png"
}
}