Find Jobs
Hire Freelancers

Simple Python Rest api code

$10-11 USD

Teljesítve
Kiadva ekkor: több mint 4 évvel ezelőtt

$10-11 USD

Teljesítéskor fizetve
i have simple python rest api code need to update this 5 endpoints Very simple crude operations ### Endpoints Your application **MUST** conform to the following endpoint structure and return the HTTP status codes appropriate to each operation. Following are the endpoints that should be implemented: | Name | Method | URL | --- | --- | --- | List | `GET` | `/configs` | Create | `POST` | `/configs` | Get | `GET` | `/configs/{name}` | Update | `PUT/PATCH` | `/configs/{name}` | Delete | `DELETE` | `/configs/{name}` | Query | `GET` | `/search?metadata.key=value` #### Query The query endpoint **MUST** return all configs that satisfy the query argument. Query example-1: ```sh curl http://config-service/search?metadata.monitoring.enabled=true ``` Response example: ```json [ { "name": "datacenter-1", "metadata": { "monitoring": { "enabled": "true" }, "limits": { "cpu": { "enabled": "false", "value": "300m" } } } }, { "name": "datacenter-2", "metadata": { "monitoring": { "enabled": "true" }, "limits": { "cpu": { "enabled": "true", "value": "250m" } } } }, ] ``` Query example-2: ```sh curl http://config-service/search?metadata.limits.cpu.enabled=true ``` Response example-2: ```json [ { "name": "datacenter-2", "metadata": { "monitoring": { "enabled": "true" }, "limits": { "cpu": { "enabled": "true", "value": "250m" } } } } ] ``` #### Schema - **Config** - Name (string) - Metadata (nested key:value pairs where both key and value are strings of arbitrary length) ### Configuration Your application **MUST** serve the API on the port defined by the environment variable `SERVE_PORT`. The application **MUST** fail if the environment variable is not defined.
Projektazonosító: 22677261

A projektről

2 ajánlat
Távolról teljesíthető projekt
Aktiválva: 4 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
Neki odaítélve:
Felhasználó avatár
Dear client I am familiar with python projects. In particular, ML and predict trading is my top skill. I am sure I can finish your project perfectly as you want. I will do your job with better budget and I will finish task very quickly. Hope to give me the chance to service for you. I will do my best for you in the future if you award me. Thanks
$10 USD 6 napon belül
0,0 (0 értékelés)
0,0
0,0
2 szabadúszó adott átlagosan $10 USD összegű árajánlatot erre a munkára
Felhasználó avatár
Hello, my name is Italo, i am Flask developer (python) and can make your API. Call me so we can discuss better.
$10 USD 7 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

SRI LANKA zászlója
Colombo, Sri Lanka
0,0
0
Fizetési mód hitelesítve
Tagság kezdete: dec. 1, 2015

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.