BusinessApi

<back to all web services

GetAllCuisineRequest

Business
Requires Authentication
Required role:Business
The following routes are available for this service:
GET/cuisine/get_all

library BusinessApi;
import 'package:servicestack/servicestack.dart';

class CuisineDto implements IConvertible
{
    int? id;
    String? label;
    String? slug;

    CuisineDto({this.id,this.label,this.slug});
    CuisineDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        label = json['label'];
        slug = json['slug'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'label': label,
        'slug': slug
    };

    getTypeName() => "CuisineDto";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'BusinessApi', types: <String, TypeInfo> {
    'CuisineDto': TypeInfo(TypeOf.Class, create:() => CuisineDto()),
});

Dart GetAllCuisineRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /cuisine/get_all HTTP/1.1 
Host: business-api.brovs.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"cuisines":[{"id":0,"label":"String","slug":"String"}]}