Tamamlanmış

Simple Python Rest api code

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.

Beceriler: Python

Daha fazlasını gör: simple xna game source code, write simple text based game code, api call amazon asin list seller, canada post tracking api code, free simple puzzle game source code xna, free simple cart php source code, youtube api code generator, gps tracking api code aspnet, simple firefox plugin sourec code extension, simple website banner layout code, python rest api, python rest api client, python rest api populate database, interactive brokers simple api code, simple python code blackjack, python rest client code, python rest api django, rest api code, python rest api framework

İşveren Hakkında:
( 0 değerlendirme ) Colombo, Sri Lanka

Proje NO: #22677261

Seçilen:

highkick11153

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 Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 10%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(0 Değerlendirme)
0.0

Bu iş için 2 freelancer ortalamada $10 teklif veriyor

italoOlliveira

Hello, my name is Italo, i am Flask developer (python) and can make your API. Call me so we can discuss better.

$10 USD in 7 gün içinde
(0 Değerlendirme)
0.0