chore(api): rename country model fields
This commit is contained in:
parent
e730959e9f
commit
654314cb1b
|
@ -2,7 +2,7 @@ from django.db import models
|
||||||
|
|
||||||
|
|
||||||
class Country(models.Model):
|
class Country(models.Model):
|
||||||
isocode = models.CharField(primary_key=True, max_length=3)
|
iso_code = models.CharField(primary_key=True, max_length=3, db_column="isocode")
|
||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
|
@ -341,12 +341,12 @@ paths:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/Country"
|
$ref: "#/components/schemas/Country"
|
||||||
description: ""
|
description: ""
|
||||||
/api/v2/countries/{isocode}/:
|
/api/v2/countries/{iso_code}/:
|
||||||
get:
|
get:
|
||||||
operationId: countries_retrieve
|
operationId: countries_retrieve
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: isocode
|
name: iso_code
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
description: A unique value identifying this country.
|
description: A unique value identifying this country.
|
||||||
|
@ -367,7 +367,7 @@ paths:
|
||||||
operationId: countries_update
|
operationId: countries_update
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: isocode
|
name: iso_code
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
description: A unique value identifying this country.
|
description: A unique value identifying this country.
|
||||||
|
@ -400,7 +400,7 @@ paths:
|
||||||
operationId: countries_partial_update
|
operationId: countries_partial_update
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: isocode
|
name: iso_code
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
description: A unique value identifying this country.
|
description: A unique value identifying this country.
|
||||||
|
@ -432,7 +432,7 @@ paths:
|
||||||
operationId: countries_destroy
|
operationId: countries_destroy
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
name: isocode
|
name: iso_code
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
description: A unique value identifying this country.
|
description: A unique value identifying this country.
|
||||||
|
|
Loading…
Reference in New Issue