Skip to content

matheralvs/nlw-expert-python

Repository files navigation

REST API example application

Create tags for application.

GitHub top language Made by GitHub last commit Repository issues

About the projectTechnologiesGetting startedHow to contribute

✅ About the project

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

Technologies that I used to develop this api

🚀 Getting started

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!

Create a Tag

Request

POST /create_tag/

curl -i -H 'Accept: application/json' -d 'product_code=123' http://localhost:3000/create_tag

Response

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"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages