Getting Started / Overview


Content


OpenAPI Swagger UI docs: https://apim-similarity-detector.azure-api.net/v1/docs

Azure Functions conventions

HTTP methodCRUD operation
POSTCreate
GETRead
PUTUpdate
DELETEDelete

Current Azure Functions

HTTP methodCRUD methodAzure Function namePathURL
GETReadReadComponentTypes/componentTypeshttps://apim-similarity-detector.azure-api.net/v1/componentTypes
GETReadReadComponents/componentTypes/{componentType}https://apim-similarity-detector.azure-api.net/v1/componentTypes{componentType}
POSTCreateCreateComponent/componentTypes/{componentType}https://apim-similarity-detector.azure-api.net/v1/componentTypes{componentType}
GETReadReadComponent/componentTypes/{componentType}/{componentId}https://apim-similarity-detector.azure-api.net/v1/componentTypes{componentType}/{componentId}
GETReadReadSimilarities/componentTypes/{componentType}/{componentId}/similaritieshttps://apim-similarity-detector.azure-api.net/v1/componentTypes{componentType}/{componentId}/similarities
POSTCreateCreateSimilarity/componentTypes/{componentType}/{componentId}/similaritieshttps://apim-similarity-detector.azure-api.net/v1/componentTypes{componentType}/{componentId}/similarities
GETReadReadRanges/filter/{componentType}https://apim-similarity-detector.azure-api.net/v1/filter/{componentType}
POSTCreateCreateMLMockModel/machineLearningMockhttps://apim-similarity-detector.azure-api.net/v1/machineLearningMock
GETReadReadDocs/docshttps://apim-similarity-detector.azure-api.net/v1/docs
GETReadReadOpenApi/openapihttps://apim-similarity-detector.azure-api.net/v1/openapi

All Azure Functions are defined as operationIds in the OpenAPI definition

Path parameters

VariableTypeExample
componentTypeStringcapacitors
componentIdInt42

Query parameters

Azure Function nameParameter nameTypeDescriptionExamples
ReadSimilaritiesorderingStringIt allows to specify a specific ordering for the result set. Given an attribute named type the ordering will be ascending (-type descending)....&ordering=type
differenceInAsStringAnyWhen it is declared the differencesIn attribute gets returned as a string instead of a list....&differenceInAsString=true

Search (query) filter

Operators

The table below lists the operator names with their corresponding mathematical symbols and the corresponding short forms.

Operator NameSymbolName
equal to=eq
not equal tone
less than<lt
greater than>gt
less than or equal tole
greater than or equal toge

If you want to search for a capacitor that has a voltage greater than 10 (voltage > 10) and a voltage less than or equal to 100 (voltage ≤ 100) and a height of 42 (height = 42) use the query parameters:

To search for a component in a specific range use for example the following command: ...&height__gt=42&height__lt=100. So you can search for a component that has a height > 42 and < 100.

API hierarchy

Resources